180k views
3 votes
Select the correct answer

Which statement will result in a compile-time error?

A. System.out.println(2/0*0);

B. System.out.println(2/0);

C. System.out.println(2+5);

D. System.out.println(0/0);​

1 Answer

1 vote

Answer:

None of them

Step-by-step explanation:

There will only be a run-time arithmetic exception.

User Khaur
by
4.7k points