File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes About Interfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "About Interfaces" Watch "About Interfaces" New topic
Author

About Interfaces

kalpana appala
Greenhorn

Joined: Feb 19, 2004
Posts: 15
Hi

kalpana appala
Greenhorn

Joined: Feb 19, 2004
Posts: 15
Hi ranchers
Sorry for the incompleted question in the previous forum. Below is the completed question

The answer for the above code is d.
But i thought the answers are b,d . Can anyone explain why b is not a correct answer. I read that constant can be a member of an interface.

Thanks
kalpana
Abdulla Mamuwala
Ranch Hand

Joined: Jan 09, 2004
Posts: 225
Hi
A constant can be a member of an interface
A variable declared within an interface is implicity public static and final which implies that it is a constant, therefore the answer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: About Interfaces
 
Similar Threads
Declaration and Access confusion...
Abstract Method
interface
Access to Inner Class private members
Need your help!