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
What will be the output of the following code
A class is declared by use of the ________ keyword.
An interface with no fields or methods is known as a ______.
Which of the following below live on the heap in java?
What will be the output of the following code
Which of these is a protocol for breaking and sending packets to an address across anetwork?
Which is used to separate the hierarchy of the class while declaring an import statement?
The name of an array variable or identifier can start with ___.
Discusssion
Login to discuss.