what is java bean?where can we use it?

Answer Posted / namita

Java bean is simply a java class which has getter and
setter methods.
setter methods are used to set the data.
getter methods are used to to get the data.

Java beans are used to encapsulate objects in a single java
bean so that the bean can be used or passed in other
classes.

Like in our jsp we can use this bean by using <%jspusebean>
tag.

Is This Answer Correct ?    82 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what do you mean by functional overloading in java?

557


Describe how to implement singleton design pattern in struts.

537


Is alive method in java?

508


Can we increase size of array?

575


What is difference between call by value and call by reference?

506






Can you add null to a list java?

587


What are different exception types exceptions available in java ?

484


When do you get classcastexception?

558


Why is a string immutable?

548


Why super is first line in java?

564


Can a constructor be made final?

669


what is meant wrapper classes?

612


What is difference between final and immutable?

563


What are latest features introduced with java 8?

595


What is a “stateless” protocol ?

561