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

What is the difference between an inner class and a sub-class?

692


Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me

1559


How many types of memory areas are allocated by JVM in java?

773


What is better- service oriented or batch oriented solutions?

1855


How many bits is a word?

766






What is the final access modifier in java?

791


can java object be locked down for exclusive use by a given thread? : Java thread

757


Explain serialization and deserialization in java?

750


what is abstract class in Java?

863


How do I find and replace in word?

713


how come we know the object is no more used in the class?

5919


How do you add an arraylist to an array in java?

699


What is a java developer salary?

713


What is the difference between method and means?

767


Differences between C and Java?

804