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. *;
public class Test{}

F.
public class Test{}
package abc;
import java.util.*{}

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

H.
package abc;
public class test {}

Explanation:



Leave a Reply 1

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


karim Ali

karim Ali

B E G H