I'm confused. I've seen two different terms: Javabean and Java Beans. Is there a significant difference between them?
-
Where did you see these terms?Martijn Verburg– Martijn Verburg2012-04-04 10:28:57 +00:00Commented Apr 4, 2012 at 10:28
-
I saw those in searching in google or in book. I'm wrong?Sam– Sam2012-04-04 10:49:30 +00:00Commented Apr 4, 2012 at 10:49
-
It is nice that I'm attending Stanford's NLP class.Chiron– Chiron2012-04-04 11:16:21 +00:00Commented Apr 4, 2012 at 11:16
-
1Does this SO question help? stackoverflow.com/questions/1361758/…jcmeloni– jcmeloni2012-04-04 11:25:31 +00:00Commented Apr 4, 2012 at 11:25
-
4One is singular and the other is plural? Really, without any more context this question is not answerable.Jesper– Jesper2012-04-04 11:46:28 +00:00Commented Apr 4, 2012 at 11:46
1 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.