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

How to avoid memory leak in java?

0 Answers  


what is prepare statement? what is calabedtarement?

1 Answers   Symphony,


Can You Have Virtual Functions In Java?

0 Answers  


Why singleton is not thread safe?

0 Answers  


What is multi level inheritance in java?

0 Answers  






How are the elements of a gridbaglayout organized in java programming?

0 Answers  


What are the Static and Dynamic Variables? Differentiate them.

0 Answers   CGI,


class A{ class B{ } } in which name u save the file,its the program compile?

6 Answers   HCL,


What are field variable and local variable?

3 Answers  


Is a class an object?

0 Answers  


What is field name?

0 Answers  


Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.

0 Answers   V2 Solutions,


Categories