Question 138

In Java, the default value of a boolean instance variable is:

  1. Anull
  2. Btrue
  3. Cfalse
  4. D0
Show answerHide answer

Correct answer: (C) false

Explanation

Instance variables get defaults: int 0, boolean false, objects null.

From DSSSB TGT Computer Science Full Mock Test 2

This is question 138 of DSSSB TGT Computer Science Full Mock Test 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.