Which four are syntactically correct?

Which four are syntactically correct?

Which four are syntactically correct?

A.
package abc;
package def;
import Java.util . * ;
public class Test { }

B.
package abc;
import Java.util.*;
import Java.util.regex.* ;
public class Test { }

C.
package abc;
public class Test {}
import Java.util.* ;

D.
import Java.util.*;
package abc;
public class Test {}

E.
package abc;
import java.util. *;
publicclassTest{}

F.
publicclass Test{}
package abc;
importjava.util.*{}

G.
import java.util.*;
public class Test{}

H.
package abc;
public class test



Leave a Reply 4

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


Tim

Tim

B E G H, if the “test” in H is replaced by “Test{}”.