Sail E0 Webinar
Question
Determine Output:
class MyClass{
static final int a = 20;
static final void call(){
System.out.println("two");
}
static{
System.out.println("one");
}
}
public class Test{
public static void main(String args[]){
System.out.println(MyClass.a);
}
}
Options:
A .  one
B .  one two
C .  one two 20
D .  20
E .  one 20
Answer: Option E

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers