aspose 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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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