Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Listener

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An interface can be public too. But not void.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks! for the reply.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic