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

How do you reverse a string in java?

577


Explain method local inner classes ?

589


What is sortedmap interface?

555


What is the epoch date?

566


Can we have any code between try and finally blocks?

560






Is java owned by oracle?

522


Can inner class extend any class?

596


What are the two categories of data types in the java programming language?

507


What are the high-level thread states in java programming?

583


Is string is a keyword in java?

547


What is n in java?

535


What are parsing rules?

498


Which is faster call by value or call by reference?

499


Can we declare the main method of our class as private?

551


What is static block?

588