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.
πŸ’¬ Discuss
βœ… Correct Answer: (B) It must be named Test.java.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
182
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate