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 Listener 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 "Listener" Watch "Listener" New topic
Author

Listener

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
All listener interfaces are declared as public & void.
Is the above statement true? Answer is true.

I have choosen as false, only the methods of listener
interfaces are declares as public & void.Correct
me where i am wrong.
Thanks!
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
You're right - evidently the author of the question wasn't very precise in their wording. You can be reassured that the real exam is (almost) always clearer than that.


"I'm not back." - Bill Harding, Twister
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
An interface can be public too. But not void.


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Thanks! for the reply.
 
GeeCON Prague 2014
 
subject: Listener