R

Ram Sharma • 193.86K Points
Coach

Q. Which statement about a valid .java file is true?

  • (A) It can only contain one class declaration.
  • (B) It can contain one pulic class declaration and one public interface definition.
  • (C) It must define at least one public class.
  • (D) It may define at most one public class.
  • Correct Answer - Option(D)
  • Views: 1098
  • Filed under category JAVA

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.


Question analytics