Phone:
+91 80884989467
Email:
[email protected]
Follow us
Home
MCQ
Aptitude Math
Logical Reasoning
Verbal Ability
Verbal Reasoning
General Knowledge
Database
CPP Programming
Java Programming
Current Affairs
Prepare
NodeJS
Java
Data Structure
Javascript
Python
MySQL
ReactJS
HTML
CSS
Blog
Company
About
FAQ
Contact
Which one is a valid declaration of a boolean?
boolean b1 = 0;
boolean b2 = 'false';
boolean b3 = false;
boolean b4 = Boolean.false();
boolean b5 = no;
Explanation
A boolean can only be assigned the literal
true
or
false
.