What is a "Java Bean"?

mrblah picture mrblah · Dec 29, 2009 · Viewed 44k times · Source

The name really throws me off. I'm hoping someone can explain it in a way I won't forget :)

Answer

Marc Paradise picture Marc Paradise · Dec 29, 2009

Any serializable java class (implementing java.io.Serializable) that follows specific conventions: a no-argument constructor, and properties accessible via get/set/is accessors.

The idea is to make it predictable, so that properties etc can be discovered automatically through reflection - of great help in tool and framework development.