Home / Programming MCQs / JAVA MCQs / Question
R
Q. What is the output of the below Java program with SWICH and ENUM?
static enum ANIMAL {GOAT, TIGER, CAMEL} public static void main(String args[]) { ANIMAL ani = ANIMAL.CAMEL; switch(ani) { case GOAT: System.out.println("GOAT");break; case CAMEL: System.out.println("CAMEL");break; case TIGER: System.out.println("TIGER");break; } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
The difference between Servlets and JSP is the …………….
In a Multi-Level Inheritance in Java, the last subclass inherits methods and properties of ____.
Which http method send by browser that asks the server to get the page only?
What is a higher data type in Java language?
Default value of priority variable MIN_PRIORITY
Java language has support for which of the following types of comment ?
Output of following Java program .
Which of these classes is used to read characters and strings in Java from console?
Discusssion
Login to discuss.