Forums Register Login

Difference between Java Bean and Java Class

+Pie Number of slices to send: Send
Hi,

Tell me Difference between Java Bean and Java Class..
+Pie Number of slices to send: Send
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).
+Pie Number of slices to send: Send
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...
+Pie Number of slices to send: Send
 

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".
Opportunity is missed by most people because it is dressed in overalls and looks like work - Edison. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 955 times.
Similar Threads
what is the difference between a java bean and a java class?
Java
Re: Java Bean
what is the difference between introspection and a reflection??
Java class and Java Bean
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:15:48.