What is the difference between Java Bean and Java Class.?

Answers were Sorted based on User's Feedback



What is the difference between Java Bean and Java Class.?..

Answer / shadow

Basically a Bean is a java class but it has getter and
setter method and it does not have any logic in it, it is
used for holding data.
On the other hand the Java class can have what a java bean
has and also has some logic inside it ....!

$HADOW

Is This Answer Correct ?    11 Yes 3 No

What is the difference between Java Bean and Java Class.?..

Answer / sravan chitikesi

yep,

Beans n classes are both are same,but the diff. is beans
are already predefined progs that v cant made chnges tothe
logic.
but classes are efforted by d user only....

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More Core Java Interview Questions

Is singleton thread safe in java?

0 Answers  


What is garbage collector?

0 Answers  


I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?

0 Answers  


Have you used any version control ? if so explain about it?

2 Answers  


Difference between error and exception

3 Answers   Nous, TCS,


What is a type parameter in java?

0 Answers  


Does treeset use compareto?

0 Answers  


what is meant by encapsulation?

0 Answers   Aspire,


What is command line argument in java?

0 Answers  


What is :: operator in java 8?

0 Answers  


Can a boolean be null java?

0 Answers  


When object is created and destroyed?

0 Answers  


Categories