It's not a secret anymore!
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
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: 1399
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
It's not a secret anymore!