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.
package abc; import java.util. *; public class Test{}
E.
public class Test{} package abc; import java.util.*{}
F.
import java.util.*; public class Test{}
G.
package abc; public class test {}
The “Java” package should be read “java” in all the answers
Not necesarelly, the question says “syntactically correct”, and the package “Java” is syntactically correct.
Grettings!
bdfg
B,D,F,G
@sanjukta : have you clear the exam ?