A
Q. What will be the output?
public class Test{
static{
int a = 5;
}
public static void main(String args[]){
new Test().call();
}
void call(){
this.a++;
System.out.print(this.a);
}
}
- Correct Answer - Option(A)
- Views: 11
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.