Vidyalelo
Java Programming · Q1

Interfaces and Abstract Classes

Programming · Java Programming · question 1

Q1

What is an interface in Java?

A.
A contract specifying a set of methods that a class must implement
Answer
B.
A class that cannot be instantiated
C.
A class that contains only static methods
D.
A subclass of the Object class

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board