Java Terminology – Difference Between Javabean and Java Beans

javaterminology

I'm confused. I've seen two different terms: Javabean and Java Beans. Is there a significant difference between them?

Best Answer

People tend to casually refer to Java classes as "Java beans" in conversations and articles.

When written as one word, however, "JavaBeans" are classes conforming to a particular convention. A JavaBean is a Java Object that is serializable, has a nullary constructor, and allows access to properties using getter and setter methods. See Wikipedia's article on JavaBeans for more information.

It's also important to note the difference between a Javabean and an EJB.

Related Topic