QWhich of the following is the correct default value of a Boolean type? / The default value of a boolean variable is:
Question Info
Choose the Best Option
Click any option to instantly check if you're correct.
Explanation
False is the correct default value of a Boolean type.
The default value of a boolean variable in Java:
-
In Java, if you declare a boolean instance variable (not local variable) and do not initialize it, its default value is false. ✅
-
FalseandTrue(capitalized) are not valid in Java. -
0is an integer, not boolean.
Answer: false
Want to remember what you got wrong?
Create a free account in seconds to track your score, revisit mistakes and continue Programming Language where you left off.
- Save your progress & streak
- Topic-wise quizzes & scores
- Bookmark tricky questions
- Printable MCQ sets
Nice — 3 questions done!
Don't lose this streak. Sign up free to save your score and pick up exactly where you stopped.
Share This Question
Challenge a friend or share with your study group.