A return statement without any value can be used in _______.
A. a non-void method
B. void method
Does the return statement in the following method cause compile errors? public static void main(String[] args) {int max = 0;if (max != 0)System.out.println(max);elsereturn; }
A. Yes
B. No
You may have a return statement in a void method.
A. true
B. false