what is java bean?where can we use it?

Answer Posted / vineen

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 ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you add null to a list java?

585


What is serial version uid and its importance in java?

598


What is reflexive association?

1007


What is math in java?

564


Can we pass a primitive type by reference in java? How

530






What is the purpose of a transient variable?

581


What is the final method?

601


What is toarray method in java?

560


Define locale.

588


Explain the access modifiers for a class, method and variables?

660


When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

545


What is final access modifier in java?

592


What does file separator do in java?

539


What are constructors in java?

570


Is ++ operator is thread safe in java?

517