This week's book giveaway is in the Open Source forum.
We're giving away four copies of RabbitMQ in Depth and have Gavin Roy on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes java Beans    Vs    java objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of RabbitMQ in Depth this week in the Open Source forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java Beans    Vs    java objects " Watch "java Beans    Vs    java objects " New topic

java Beans Vs java objects

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1389
What is the differnce between java Beans and java objects ?
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
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...

Co-author of SCMAD Exam Guide, Author of JMADPlus
I agree. Here's the link:
subject: java Beans Vs java objects