• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

java Beans Vs java objects

 
Ranch Hand
Posts: 1491
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the differnce between java Beans and java objects ?
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
reply
    Bookmark Topic Watch Topic
  • New Topic