Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java Beans Vs java objects

 
kri shan
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the differnce between java Beans and java objects ?
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaBeans possess the following properties...
-Private fields, which cannot be called by other classes
-Public Getters/Setters to get access to private fields of the JavaBeans
-Other Utility methods

But Java Objects is any instance of a Java class. Some may not possess the above properties of JavaBeans, while some may. In the other words, JavaBeans is a subset of Java objects...

Hope it helps...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic