• 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 method names

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On page 68, under the "Two Minute Drill" section, Objective 1.3, it states:

"JavaBeans must be named using camelCase, and depending on the methods proposed, must start with set, get, is, add, or remove."

Then, on the same chapter's Self Test Answers, page 79, question 2 asks:

"Which method names follow the JavaBeans standard?

A. addSize
B. getCust
C. deleteRep
D. isColorado
E. putDimensions"

You state that "A is incorrect because 'add' can be used only with Listener methods."

Seems misleading.

Ron Grimes
 
Ranch Hand
Posts: 814
Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You may get help from here. See this discussion
reply
    Bookmark Topic Watch Topic
  • New Topic