This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply 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: 18670
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: 3219
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Listener
 
Similar Threads
do they exist abstract interfaces?
interfaces!
Listener class
Interfaces - public and abstract
Extended Listener Pattern