Q.

In order for a source code file, containing the public class Test, to successfully compile, which of the following must be true?

A. It must have a package statement.
B. It must be named Test.java.
C. It must import java.lang.
D. It must declare a public class named Test.
Answer» B. It must be named Test.java.
2.6k
0
Do you find this helpful?
2

View all MCQs in

Java Programming

Discussion

No comments yet

Related MCQs