Question
What will be the output for the below code?
public class Test{
static{
int a = 5;
}
public static void main(String[] args){
System.out.println(a);
}
}
public class Test{
static{
int a = 5;
}
public static void main(String[] args){
System.out.println(a);
}
}
Answer: Option A
Submit Your Solution Below and Earn Points !
Submit Your Solution Below and Earn Points !
Submit Solution