1.

What does an interface contain?(a) Method definition(b) Method declaration(c) Method declaration and definition(d) Method nameThis question was posed to me in examination.This question is from Interfaces in division Interfaces & Packages of Java

Answer» RIGHT answer is (b) Method DECLARATION

Easy explanation: Interface CONTAINS the only declaration of the method.


Discussion

No Comment Found

Related InterviewSolutions