GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing en.wikipedia.org — Primitive wrapper class in Java - Wikipedia In object-oriented programming, a wrapper class is a class that encapsulates types, so that those types can be used to create object instances and methods in another class that needs those types. So a primitive wrapper class is a wrapper class that encapsulates, hides or wraps data types from the eight primitive data types,[1] so that these can be used to create instantiated objects with methods in another class or in other classes.[2][3] The primitive wrapper classes are found in the Java API. Primitive wrapper classes are used to create an The primitive wrapper classes and their corresponding primitive types are:
The difference between wrapper classes and primitive typesPrimitive wrapper classes are not the same thing as primitive types. Whereas variables, for example, can be declared in Java as data types Therefore, the term primitive wrapper class does not mean that wrapper classes are primitive types. It should be understood to be a class that wraps primitive types. Wrapper classes can be used to store the same value as of a primitive type variable but the instances/objects of wrapper classes themselves are non-primitive. We cannot say that Wrapper classes themselves are Primitive types. They just wrap the primitive types. The The arbitrary precision numeric classes Atomic wrapper classesWith Java 5.0, additional wrapper classes were introduced in the The atomic wrapper classes and their corresponding types are:
The See alsoReferences
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |