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 are the advantages of arraylist over arrays?

576


What is the technique adopted to create an immutable class?

530


what are Hostile Applets?

1610


What is array command?

563


Difference between association, composition and aggregation?

565






What is mnemonic code?

550


What does a method signature consist of?

518


What is the difference between @before and @beforeclass annotation?

549


What is a dynamic array in java?

569


Name the components that are termed to be Heavy-weight component but available in Light-weight components?

1989


What is isa relationship?

571


How do you declare an array that will hold more than 64KB of data?

649


What is javac in java?

566


Does it matter in what order catch statements for filenotfoundexception and ioexception are written?

512


What are the parts of methodology?

553