• 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 ...
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

JavaBean Listerner Naming Rule

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 ]
a wee bit from the empire
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic