This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Listener
 
Similar Threads
Listener class
Extended Listener Pattern
do they exist abstract interfaces?
Interfaces - public and abstract
interfaces!