Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
senthil sen
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference a java bean and a ordinary java class???
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic