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 0
C .  Compile time error.
D .  None of these
E .  one two 10
Answer: Option C

Submit Your Solution Below and Earn Points !

Submit Solution

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

Latest Videos

Latest Test Papers