1.

Which of the following is the correct way of implementing an interface salary by class manager?(a) class manager extends salary {}(b) class manager implements salary {}(c) class manager imports salary {}(d) none of the mentionedThe question was asked in a national level competition.My doubt is from Interfaces in chapter Interfaces & Packages of Java

Answer»

The CORRECT choice is (B) class manager IMPLEMENTS SALARY {}

To EXPLAIN I would say: None.



Discussion

No Comment Found

Related InterviewSolutions