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

Showing Answers 1 - 4 of 4 Answers

zain

  • Mar 6th, 2013
 

A) It must have a package statement

  Was this answer useful?  Yes

tien

  • Jul 29th, 2014
 

C) It must import java.lang

  Was this answer useful?  Yes

Jitender Singal

  • Sep 27th, 2014
 

d) it must declare a public class named test

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Answer Question

Click here to Login / Register your free account


 
Send   Reset

 

Related Answered Questions

 

Related Open Questions