A

Admin • 828.03K Points
Coach

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.
  • Correct Answer - Option(B)
  • Views: 9
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.