Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Java Beans are called "beans"?

Tags:

java

javabeans

I am a Java developer and I am working with Beans everyday. I am curious about the history of the name "Bean". Does it just comes from coffe bean, or is there something else?

like image 611
Han Avatar asked Sep 04 '13 08:09

Han


People also ask

What is meant by beans in Java?

In computing based on the Java Platform, JavaBeans is a technology developed by Sun Microsystems and released in 1996, as part of JDK 1.1. The 'beans' of JavaBeans are classes that encapsulate one or more objects into a single standardized object (the bean).

What does beans mean in programming?

Beans are Java™ classes that adhere to specific conventions regarding property and event interface definitions. By conforming to the conventions, you can turn almost any existing programming component or Java class into a bean.

Is Java a type of bean?

Almost any Java type may be a bean type of a bean.

What is difference between EJB and JavaBeans?

A JavaBean is a Java class that encapsulates multiple objects and conforms to certain conventions. JavaBeans are used mainly for client-side development. An enterprise bean (EJB) is a Java class imbued with specific server-side capabilities. Enterprise beans are used in large-scale business applications and systems.


2 Answers

Yes, indeed. It refers just to coffee beans (which can be stored in jar, by the way ...)

like image 59
jeroen_de_schutter Avatar answered Sep 24 '22 02:09

jeroen_de_schutter


Yes it stands for a coffee bean..

Some trivia: Java stands for the Java coffee consumed by the developers

like image 45
Kelevra Avatar answered Sep 23 '22 02:09

Kelevra