This is a discussion on wrapper class within the Java Programming forums, part of the Software Development category; pls explain about wrapper class...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| pls explain about wrapper class |
|
#2
| |||
| |||
| Wrapper class is exactly wrap primitive types (eg: int, double, etc) in Objects which can be placed into Vectors, and many, many other uses creating wrapper classes Integer i = Integer.valueOf("125"); the more common use is given the primitive in a variable. Integer Integer I = Integer.valueOf(i); //Wrapper int i2 = I.intValue(); //back to primitive boolean boolean b = true; Boolean B = Boolean.valueOf(b); //Wrapper boolean b2 = B.booleanValue(); //back to primitive ![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| wrapper class | sivakumar | C# Programming | 2 | 08-25-2007 02:15 AM |
| Debug class and Trace class | simplesabita | Software Testing | 3 | 08-17-2007 11:30 PM |
| Can we inherit the java class in C# class | vigneshgets | C# Programming | 1 | 08-09-2007 06:42 AM |
| Is there any way to use keyPressed method of Canvas class in Form class? | bluesky | Mobile Software Development | 1 | 07-25-2007 05:02 AM |
| What is super class sub class in error? | santoshmalvi | Software Testing | 1 | 04-16-2007 12:20 AM |
Our Partners |