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

How to optimize the javac output?

590


What is the difference between conversation & casting?

564


Can a class have more than one object?

518


What is the use of singleton class?

517


How to make a class or a bean serializable?

537






What does java se mean?

584


Explain about instanceof operator in java?

601


What is a java applet? What is an interface?

624


worst case complexities of Quick sort and Merge sort.

589


What is the main functionality of the remote reference layer?

1409


Is a char always 1 byte?

497


Explain about OOPS concepts and fundamentals.

589


What are abstract methods in java?

639


What is volatile data type?

549


Why hashcode is used in java?

493