Delhi, , India
Data Entry, Advance Java, Core Java
4 टिप्पणियाँ दें | 64 लोगो ने देखा है | 02 मार्च 13  | Swati Gupta
Java wrapper class
Why do we need wrapper classes A wrapper class wraps encloses around a data type and gives it an object appearance. Wherever, the data type is required as an object, this object can be used. Wrapper classes include methods to unwrap the object and give back the data type. Wrapper classes allow primitive data types to be accessed as objects. They are one per primitive type Boolean, Byte, Character, Double, Float, Integer, Long and Short. Wrapper classes make the primitive type data to act as objects. Dealing with primitives as objects is easier at times. Most of the objects collection store objects and not primitive types. Many utility methods are provided by wrapper classes. Features of the Java wrapper Classes. Wrapper classes convert numeric strings into numeric values. The way to store primitive data in an object. The valueOf method is available in all wrapper classes except Character All wrapper classes have typeValue method. This method returns the value of the object as its primitive type To convert simple data types into objects, that is, to give object form to a data type here constructors are used. To convert strings into data types known as parsing operations, here methods of type parseXXX are used.
पोर्फोलिओ और ब्लॉग
Swati Gupta विभिन्न कंपनियों का अनुसरण करता है, ये कंपनियां और नियोक्ता Swati के फिर से शुरू देख सकते हैं
सबसे अच्छा नौकरी के अवसर पाने के लिए अपना फिर से शुरू करें अपलोड करें

मुफ्त रजिस्टर करें!