What is meant by wrapper classes?
Answers were Sorted based on User's Feedback
Answer / vishnu
Wrapper class is a wrapper around a primitive data type. It
represents primitive data types in their corresponding class
instances e.g. a boolean data type can be represented as a
Boolean class instance. All of the primitive wrapper classes
in Java are immutable i.e. once assigned a value to a
wrapper class instance cannot be changed further.
| Is This Answer Correct ? | 12 Yes | 0 No |
what is enumset?
What is final?
What does snprintf return?
How can we make string upper case or lower case?
suppose in a class there is a code like this: { Set hs=new Hashset(); hs.add(new Emp("kathy",1000)); hs.add(new Emp("kathy",2000)); } how can u avoid the above code in your class as set won't allow duplicate objects?
what is difference between abstract and interface? can i give real time example for the two topics?
Why is the main method static in Java?
Where import statement is used in a java program?
What is the difference between menuitem and checkboxmenu item?
Differences between GridLayout and GridBagLayout?
What is composition in java?
Can a double value be cast to a byte?