What is java beans? Differentiate it with java classes

.A java bean is a reusable software component written in java that can be manipulated visually in an application builder tool.This idea is that one can start with a collection of such components, and quickly wire them together to form complex programs without actually writing any new code.


A JavaBean is a software component that is written in a java programming language. It is similar to a java except for following differences:

● A JavaBean must adhere to certain conventions regarding property and event interface definitions whereas java classes need to be.

● A builder tool must be able to analyze how a Bean works through the introspection process. This is not necessary for java classes.

● Java Beans must be customizable. It should allow its state to be manipulated at design time. This is not necessary to be true in the case of java classes.

● JavaBeans must implement Serializable interface which is not necessary for java classes.

● Every JavaBean must have one public no-argument constructor which is not true for java classes

Comments

Popular posts from this blog

What are different steps used in JDBC? Write down a small program showing all steps.

Discuss classification or taxonomy of virtualization at different levels.

Pure Versus Partial EC