πŸ“Š JAVA
Q. What is the output for the below code ?
Code:
public class Test
{
      public static void main(String[] args)
 { 
             int i = 010; 
             int j = 07; 
             System.out.println(i); 
             System.out.println(j); 
       } 
 }
  • (A) 8 7
  • (B) 10 7
  • (C) Compilation fails with an error at line 3
  • (D) Compilation fails with an error at line 5
πŸ’¬ Discuss
βœ… Correct Answer: (A) 8 7

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
200
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Sandeep
Publisher
πŸ“ˆ
84%
Success Rate