Sail E0 Webinar
Question
What will be the output after compiling and running following program code?
public class Test{
static int a;
public static void main(String[] args){
System.out.println("one");
call(1);
}
static void call(int a){
this.a=10;
System.out.println("two "+a);
}
}
Options:
A .  one two 1
B .  one two 10
C .  one two 0
D .  Compile time error.
E .  None of these
Answer: Option D

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers