MCQs > IT & Programming > Java > Output of the given console application? public class Test34 { public static void main(String[] args) { int a = 2; switch(a) { default: System.out.print('_default'); case 0: System.out.print('_ZERO'); case 1: System.out.print('_ONE'); } } }

Java MCQs

What is the output of the given console application? public class Test34 { public static void main(String[] args) { int a = 2; switch(a) { default: System.out.print("_default"); case 0: System.out.print("_ZERO"); case 1: System.out.print("_ONE"); } } }

Answer

Correct Answer: _default_ZERO_ONE

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it