Q. What will be the output of the following Java program?
import java.lang.System;
class Output
{
public static void main(String args[])
{
System.exit(5);
}
}

  • (A) 0
  • (B) private final
  • (C) 4
  • (D) 5
πŸ’¬ Discuss
βœ… Correct Answer: (D) 5

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
119
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vinay
Publisher
πŸ“ˆ
95%
Success Rate