Q. What is the default value of a boolean variable in Java?

A
true
B
false
D
null
Solution:

Instance and array variables of type boolean are initialized to false by default.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!