aspose file tools*
The moose likes Java in General and the fly likes Difference between Java Bean and Java Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Difference between Java Bean and Java Class" Watch "Difference between Java Bean and Java Class" New topic
Author

Difference between Java Bean and Java Class

R Bhatia
Greenhorn

Joined: Nov 15, 2004
Posts: 9
Hi,

Tell me Difference between Java Bean and Java Class..
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
read the bean specification, it contains the answer...

to summarise: a bean is a class that adheres to certain rules (for those, see the bean specification).


42
Logan Owen
Greenhorn

Joined: Dec 01, 2004
Posts: 24
Actually, technically speaking...insn't a Java Bean merely a piece of code that is reusable?

Components (JavaBeans) are reusable software programs that you can develop and assemble easily to create sophisticated applications. JavaBeans technology is based on the JavaBeans specification.


Googling for "Java Bean" is helpful...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61206
    
  66

insn't a Java Bean merely a piece of code that is reusable?


No. Any Java class can be deemed "reusable". As Jeroen pointed out there are a stringent set of rules and conventions that must be followed for a class to be considered a "bean".


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Difference between Java Bean and Java Class