Q. What will be the output of the following Java code?

Code:
class Output 
{
        public static void main(String args[]) 
        {    
             int x=y=z=20;
 
        } 
}
  • (A) compile and runs fine
  • (B) 20
  • (C) run time error
  • (D) compile time error
πŸ’¬ Discuss
βœ… Correct Answer: (D) compile time error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
358405
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Ravi Shankar
Publisher
πŸ“ˆ
99%
Success Rate