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

Code:
class Output 
{
        public static void main(String args[]) 
        {    
           final int a=10,b=20;
          while(a
            
  • (A) Hello
  • (B) run time error
  • (C) Hello world
  • (D) compile time error
πŸ’¬ Discuss
βœ… Correct Answer: (D) compile time error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
113
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Pooja
Publisher
πŸ“ˆ
93%
Success Rate