Vidyalelo
Java Programming · Q18

Interfaces and Abstract Classes

Programming · Java Programming · question 18

Q18

What is the purpose of the "default" keyword in Java interfaces?

A.
To mark a method as abstract
B.
To create a new interface
C.
To declare a class
D.
To specify the default implementation of a method
Answer

Answer: Option D

Solution

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