Loading...
Java

Boolean Literals

Boolean type values are true or false only in lower case.
Example:
1. boolean b=false; //(valid)
2. boolean b=0; //(invalid)
3. boolean b=False; //(invalid)
4. boolean b=”false”; //(invalid)

Leave a Reply

Your email address will not be published. Required fields are marked *