SCJP MOCK EXAM-01 MCQ Question
SCJP MOCK EXAM-01 MCQ Question
1. Which of the following are valid for declaring and initialising a boolean variable?
- boolean b = True;
- boolean b = 0;
- boolean b = 1 < 2;
- boolean b = true?false:true;
2. Select the valid declarations.
- int i = 16.0;
- byte b = 16.0;
- float f = 16.0;
- double d = 16.0;