Tell me Difference between Java Bean and Java Class..
Jeroen Wenting
Ranch Hand
Joined: Oct 12, 2000
Posts: 5093
posted
0
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
posted
0
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.
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".