In Java, the default value of a boolean instance variable is:
Show answerHide answer
Correct answer: (C) false
Explanation
Instance variables get defaults: int 0, boolean false, objects null.
Correct answer: (C) false
Explanation
Instance variables get defaults: int 0, boolean false, objects null.
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.