What will be the output of the following Java code snippet?
Check your spam folder if password reset mail not showing in inbox????
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
enum Enums { A, B, C; private Enums() { System.out.println(10); } } public class MainClass { public static void main(String[] args) { Enum en = Enums.B; } } a) 10 10 10 b) Compilation Error c) 10 10 d) Runtime Exception View Answer Answer: a Explanation: The constructor of Enums is called which prinRead more
enum Enums
{
A, B, C;
{
}
}
{
{
}
}
a)
b) Compilation Error
c)
d) Runtime Exception
See lessView Answer
Answer: a
Explanation: The constructor of Enums is called which prints 10.
A
A
See less