Menu
Question Index
...

Which two of the following are legal declarations for non-nested 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 {}


1 and 4
2 and 5
3 and 6
4 and 6
5 and 3

Doubts

Problems

Topic: Difference Between Interfaces And Abstract Classes

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App