O'Reilly logo

Sams Teach Yourself Java™ 2 Platform in 21 Days Professional Reference Edition by Rogers Cadenhead, Laura Lemay

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

Chapter 27. JavaBeans

As you have learned, one of the primary advantages of object-oriented programming is the capability to reuse an object in different programs. If you have created a spellchecker object that works great with your word processing program, you should be able to use the same object with an email program also.

Sun has extended this principle with the introduction of JavaBeans. A JavaBean, also called a bean, is a software object that interacts with other objects according to a strict set of guidelines. By following these guidelines, the bean can most easily be used with other objects. Once you know how to work with one JavaBean according to these rules, you know how to work with all of them.

Another advantage of JavaBeans occurs ...

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