Page 1 of 1

Will this Java program generate same output is executed again?

Posted: Wed Jul 13, 2022 7:46 pm
by answerhappygod
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