How many of the code fragments, inserted independently at line 2, compile?

Given:
01. public class Mud {
02. //insert code here
03. System.out.println("hi");
04. }
05. }
And the following five fragments:
public static void main(String…a) {
public static void main(String.* a) {
public static void main(String… a) {
public static void main(String[]… a) {
public static void main(String…[] a) {
How many of the code fragments, inserted independently at line 2, compile?
A. 0
B. 1
C. 2
D. 3
E. 4
F. 5

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.