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

Can we force the garbage collection to run?

695


What is singleton class and how can we make a class singleton?

847


What is nullpointerexception?

739


What is natural ordering in java?

711


What is collection api?

791






What is a flag variable?

727


What is the difference between public, private, protected, and friend access?

760


Write a program to calculate factorial in java?

754


Why doesn't the java library use a randomized version of quicksort?

729


String class is defined under which package in java?

792


Can you write a java class that could be used both as an applet as well as an application?

682


Why java is secure? Explain.

750


Can we use catch statement for checked exceptions?

719


What are the 4 types of research methods?

665


What are the characteristics of Final,Finally and Finalize keywords.

904