A

Admin • 828.70K Points
Coach

Q. Which two of the following are legal declarations for abstract classes and interfaces?
1. final abstract class Test {}
2. public static interface Test {}
3. final public class Test {}
4. protected abstract class Test {}
5. protected interface Test {}
6. abstract public class Test {}

  • (A) 1 and 2
  • (B) 2 and 4
  • (C) 3 and 5
  • (D) 3 and 6
  • Correct Answer - Option(D)
  • Views: 24
  • Filed under category Java
  • Hashtags:

Explanation by: Admin
(3), (6). Both are legal class declarations.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.