V

Vinay • 28.75K Points
Instructor II

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: 31
  • Filed under category JAVA

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics