Q121
Open questionWhat is the order of variables in Enum?
Select an option to see the answer and solution.
Practice every MCQ with options. Use Show answers when you want the correct option and solution.
127
Questions
7/7
Page
Pick an option on a question to see the right answer and solution.
Q121
Open questionSelect an option to see the answer and solution.
Q122
Open questionSelect an option to see the answer and solution.
Q123
Open questionSelect an option to see the answer and solution.
Q124
Open questionclass A
{
}
enum Enums extends A
{
ABC, BCD, CDE, DEF;
}Select an option to see the answer and solution.
Q125
Open questionclass mainclass {
public static void main(String args[])
{
boolean var1 = true;
boolean var2 = false;
if (var1)
System.out.println(var1);
else
System.out.println(var2);
}
}Select an option to see the answer and solution.
Q126
Open questionSelect an option to see the answer and solution.
Q127
Open questionenum Enums
{
A, B, C;
private Enums()
{
System.out.println(10);
}
}
public class MainClass
{
public static void main(String[] args)
{
Enum en = Enums.B;
}
}Select an option to see the answer and solution.