R

Ram Sharma • 3.40K Points
Extraordinary

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

  • (A) true
  • (B) false
  • (C) 0
  • (D) null
  • Correct Answer - Option(B)
  • Views: 1
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
The default value of a boolean variable is `false` in Java.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.