Discussion Locked

difference between java and javabeans

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
what is the difference between java and javabeans?

5 replies

by jay eckles

Java is a programming language, like C++, Smalltalk, etc.

JavaBeans are reusable Java components, like COM in VB or VC++. That means they are classes that have a specific interface and can be reused easily. Generally a Bean has getXxx and setXxx methods to get and set the value of a property in the class named xxx. It also probably has some methods to do something useful, like drawCircle() or calcDiameter( int radius ).

Note that a JavaBean and an Enterprise Java Bean are not the same thing. (poor naming convention on the part of Sun)

To learn about Java, there's a seemingly unlimited number of resources on the net. I suggest you start at the Java Tutorial at http://java.sun.com/docs/books/tutorial/. To learn about Java Beans in particular (undertsanding of the Java language is a prerequisite), follow the JavaBeans tutorial trail at http://java.sun.com/docs/books/tutorial/javabeans/index.html.

Good luck.

Jay Eckles
www.jayeckles.com

by rashmigopinath

Java is a programming language.
JavaBean is a re-usable component architecture which is written using Java language.
You can get more info about the same at the Sun site.

This discussion is closed to new replies.