228k views
4 votes
Java: Literal representing the true value ? In java, what is the literal that represents a true value ?

User Psiyumm
by
8.0k points

2 Answers

4 votes

Answer:

Boolean literals can have only two values: true or false.

boolean b = true;

4 votes
1 is what represents a true value and 0 is a negative value
User Ammaroff
by
7.9k points