Java | Data Types | Question 2
Predict the output of following Java program.
(B) Empty Output
(C) Compiler error
(D) Runtime error
Explanation: The error is in for loop where 0 is used in place of boolean value.
Unlike C++, use of non boolean variables in place of bool is not allowed
Quiz of this Question