Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Usage problem  RSS feed

 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I saw in some books using the bean and object interchangebly. How far this is correct? I fancy that one should particularly treat them separately.

Thanks and Regards,
Naren.
 
Mag Hoehme
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Naren,

an EJB is in fact a special subtype of object. And all objects inherit from java.lang.Object. This may account for the interchangeable use of "bean" and "object".

Hope this helps. If not, please let me know an example.
[ June 22, 2004: Message edited by: Mag Hoehme ]
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An object is any instance of a class.

A bean is often used to describe instance of a class that is written in a specific way( getters, setters etc.)

All bean instances are objects. But the reverse may not be true.

An Enterprise Java Bean is a special kind of bean.

HTH
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!