O'Reilly logo

JavaBeans Unleashed by Rick Leinecker, Dr. Donald Doherty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Bean Methods

Other than accessor methods, there is nothing special about a Java bean method. However, keep in mind that any public method is visible to users through application builders and other JavaBeans containers like the BeanBox. Only make methods public if you really do want them public. And when you do write a public method, give it a human readable name that makes it obvious for what the method should be used.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required