πŸ“Š JAVA
Q. What will be the output of the following Java code?
class Output
{
public static void main(String args[])
{
try
{
int a = 0;
int b = 5;
int c = b / a;
System.out.print("Hello");
}
}
}
  • (A) Hello
  • (B) World
  • (C) HelloWOrld
  • (D) Compilation Error
πŸ’¬ Discuss
βœ… Correct Answer: (D) Compilation Error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
102
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Ranjeet
Publisher
πŸ“ˆ
93%
Success Rate