English

The default value of a boolean variable is ______. - Computer Applications

Advertisements
Advertisements

Question

The default value of a boolean variable is ______.

Options

  • False

  • 0

  • false

  • True

MCQ
Fill in the Blanks

Solution

The default value of a boolean variable is false.

Explanation:

  • In Java, the default value of a boolean variable is false.
  • This is the value automatically assigned to boolean variables that are not explicitly initialized.
shaalaa.com
Tokens
  Is there an error in this question or solution?
2024-2025 (April) Specimen Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×