Computer Science, asked by lovelysonu, 5 hours ago

Which one statement is true about the application shown below? The line numbers are for reference purposes only.
1 public class App {
2 public static void main(String[] args) {
3 double x = Math.random();
4 double y = Math.ceil(x);
5 if (x == y) {
6 System.out.println("Biggest number");
7 }
8 else {
9 System.out.println("Smaller number");
10 }
11 }
12 }
(a) the program will compile and run but the output cannot be determined.
(b) the program will compile and run to always display "Biggest number".
(c) the program will compile and run to always display "Smaller number".
(d) the program will compile but an error will occur at run time.
(e) a compile error will occur because the Math class was not imported.

Say the correct answer

Answers

Answered by vishalsojitra321
3

Answer:

Java has been a perennial contributor to the software development domain. It is not only necessary to learn and master Java skills but also to practice these skills in real-time. In this article, we bring you, some of the most sought-after Java Interview Questions that will help you ace major interview processes and help test your skills and knowledge at their absolute.

Similar questions