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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to sort list of list in java?

663


What is the significance of listiterator?

567


What’s the difference between applets and standalone program?

533


public class Test { public static void main(String[] args) { int countA = 0; int countB = 0; int countC = 0; int countD = 0; int countE = 0; int countF = 0; int countG = 0; int countH = 0; int countI = 0; int countJ = 0; int countK = 0; int countL = 0; int countM = 0; int countN = 0; int countO = 0; int countP = 0; int countQ = 0; int countR = 0; int countS = 0; int countT = 0; int countU = 0; int countV = 0; int countW = 0; int countX = 0; int countY = 0; int countZ = 0; } } Can anybody tell me any alternate solution(like loop or something) to automate this initialization process. Ex:- for(char chr='A';chr<='Z'; chr++) { (int) String "count"+chr = 0; }

1845


What is the meaning of variable in research?

557






What is member in java?

494


Can you give few examples of final classes defined in java api?

559


List primitive java types?

594


What are the super most classes for all the streams?

1171


What is numeric function?

540


What is class array in java?

508


What’s the difference between callable and runnable?

544


Do you need to import math in java?

559


Lowest Common ancestor in a Binary Search Tree and Binary Tree.

556


What does super keyword do?

557