Saturday, 4 July 2009

Java Certification Question 0024

Which of the following statements are true?
1) A method in an interface must not have a body
2) A class may extend one other class plus at most one interface
3) A class may extends at most one other class plus implement many interfaces
4) An class accesses an interface via the keyword uses



Answer :
1) A method in an interface must not have a body
3) A class may extends one other class plus many interfaces
A class accesses an interface using the implements keyword (not uses)

No comments:

Post a Comment