What is a Java Bean? Is it Just Any Java Class?

What is a Java Bean? Is it just any java class?

The answer is no!

Many people think when they say “Java Bean” they are talking about just any java class, but this is not the case. A Bean is not just any java class. Java Beans are classes that need to abide by some certain rules/conventions.

3 conventions they should satisfy can be listed as below:

1- They need to have a no-argument public constructor

2- They need to have get/set methods for their properties named according to naming conventions (getProperty, setProperty)

3- They need to be serializable

Hope this helps.
Good Luck,

Serdar Osman Onur
I love coding web stuff, learning/applying new technologies and techniques to create things on the internet since 2004. AboutMe G+ twitter
Serdar Osman Onur


hard work, determination, dedication, patience, consistency, faith
Finally here:) #speedcube #valk3 https://t.co/YGnqqqpo4i - 1 day ago
Serdar Osman Onur