Java Interface Quiz
Java Interface Quiz
Q1. Every thing that can be done by an abstract class, can be done by an Interface?
1. Yes
2. No
Q2. Which of these keywords is used by a class to use an interface defined previously?
1. import
2. Import
3. implements
4. Implements
1. Feature Based
2. Role Based
3. Method Based
1. Constructors
2. Static Methods
3. Non Static Data Members
4. All of these
Q5. When a class A implements an interface B, what relation is created b/w them?
1. A is B
2. A has B
3. B is A
4. B has A