SCJP Test 3 - Online Test

Test Difficulty Level: Medium

Syllabus of Test

Questions based on SCJP

Sample Question from this online test:

Question: 1. Float f = new Float(“12”);
2. switch (f) {
3. case 12: System.out.println(“Twelve”);
4. case 0: System.out.println(“Zero”);
5. default: System.out.println(“Default”);
6. }
What is the result?

Option A: Zero

Option B: Twelve

Option C: Default

Option D: Compilation fails

To answer, click the "Start This Test" button below.

Start this Test






Comments

Hareesh SarmaHareeshS on 2012-04-09 18:30:50 wrote,

Thanks a lot for all test:) please keep reasons for answers