• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JavaBean Listerner Naming Rule

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I am not understanding this one:
The book states :
"Examples of valid JavaBean naming rules are"
public void addMyListener(MyListener m)

And invalid ones are:
public void addXListener(MyListener m)

Now I know that MyListener cannot be resolved to a type in the invalid case. But why is the first one considered valid?
And what exactly does "Cannot be resolved to a type" mean?

Thanks in advance,
[ December 01, 2007: Message edited by: Xyz Abc ]
reply
    Bookmark Topic Watch Topic
  • New Topic