Sail E0 Webinar
Question
What is the output for the below code ?1. public class Test{2. public static void main(String[] args){3. int i = 010;4. int j = 07;5. System.out.println(i);6. System.out.println(j);7. }8. }
Options:
A .  Compilation fails with an error at line 3
B .  None of these
C .  Compilation fails with an error at line 5
D .  10 7
E .  8 7
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 *

Latest Videos

Latest Test Papers