What is the default value of a local variable of data type boolean in Java?

  • 1
  • 0
  • FALSE
  • TRUE
Local variables in Java don't have default values. They must be initialized before use. However, for class-level variables of boolean type, the default value is false.
Add your answer
Loading...

Leave a comment

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