aspose file tools*
The moose likes Java in General and the fly likes what is the difference between a java bean and a java class? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "what is the difference between a java bean and a java class?" Watch "what is the difference between a java bean and a java class?" New topic
Author

what is the difference between a java bean and a java class?

senthil sen
Ranch Hand

Joined: Oct 10, 2002
Posts: 184
what is the difference a java bean and a ordinary java class???
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Java Beans are just classes that meet specific criteria. They are reusable components that are well encapsulated (so their variables are private and they have getters and setters), and have properties and use events to comunicate etc.
JavaBean Tutorial
Not to be confused with Enterprise JavaBeans.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
jQuery in Action, 2nd edition
 
subject: what is the difference between a java bean and a java class?