Search code examples
javadefinitionjavabeans

What is a "Java Bean"?


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


Solution

  • 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.