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);
else
return;
}
a. Yes
b. No
b It is rare, but sometimes useful to have a return statement for circumventing the normal flow of control in a void method.
Computer Science & Information Technology
You might also like to view...
________ templates are stored in the Program Files\Microsoft Office\Templates\1033 folder
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology
What are common keyboard events? What is the delegate used to create a keyboard event handler, and what is the type of the second parameter to the event handler?
What will be an ideal response?
Computer Science & Information Technology