Q. Will this Java program generate same output is executed again?
class Output
{
public static void main(String args[])
{
int y = double z = Math.random();
System.out.print(y);
}
}

  • (A) Yes
  • (B) No
  • (C) Compiler Dependent
  • (D) Operating System Dependent
πŸ’¬ Discuss
βœ… Correct Answer: (B) No

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
118
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Sonali Mishra
Publisher
πŸ“ˆ
99%
Success Rate