This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes interfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "interfaces" Watch "interfaces" New topic
Author

interfaces

Kuma Akel
Greenhorn

Joined: Jul 23, 2004
Posts: 6
Hi,

The following is a question from Dan Chisholm's Mock exams..

Which of the following statements is not true?

a. An interface that is declared within the body of a class or interface is known as a nested interface.
b. A constant can be a member of an interface.
c. A class declaration can be a member of an interface.
d. If an interface is named in the implements clause of a class, then the class must implement all of the methods declared within the interface.
e. None of the above.

The answer is (d)

Though answer d is correct, I do not understand the (a) and (c). After I did this question, I went and reread the K&B on this topic, no where it mentions anything about it. So far I have been thinking, only the constants either objects or primitives and abstract methods are allowed to declare in interfaces. Can somebody explain me those two statements?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: interfaces