answersLogoWhite

0

What is type wrappers in java?

Updated: 12/13/2022
User Avatar

Wiki User

15y ago

Best Answer

A wrapper class in the Java programming language is one of eight classes provided in the java.lang package to create objects for the eight primitive types. All of the primitive wrapper classes in Java are immutable. Wrapper classes are used to represent primitive values when an Object is required. The wrapper classes are used extensively with Collection classes in the java.util package and with the classes in the java.lang.reflect reflection package. The Wrapper classes are: 1. Byte 2. Short 3. Integer 4. Long 5. Float 6. Double 7. Character 8. Boolean The Byte, Short, Integer, Long, Float and Double are all subclasses of the Number class. If you notice, the names of these wrapper classes are just the same as their primitive data type with a capitalized first letter. These wrapper classes start with a upper case alphabet while their primitive counterparts start with a lowercase alphabet.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is type wrappers in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What do you get with 24 wrappers?

A pile of wrappers!A pile of wrappers!A pile of wrappers!A pile of wrappers!


Do crisp wrappers decompose?

Type your answer here... after a few years they do


What are takis wrappers made out of?

I think a type of foil I'm not sure


What type of government in java?

Java has a Communist government.


Solvent used in dissolving plastic wrappers?

acetone Type your answer here... acetone


How do you find out if your computer has java?

Open cmd and type java


How do you compile your java code?

save it into a .java file. then open command prompt and navigate to your java bin directory. then type CD then your java bin directory. then type this . javac ProgName.java


Where is the java directory?

Nowhere, Just Windows-r and type "JAVA"


What is the return type of finally method in java?

The final and finally keywords have no impact on the return type of a method in Java.


What is gini in Java language?

gini is the one type of extension of the java. gini is the advanced and advanced version of the java


Which type of language is java?

Java is truly object oriented programming language


Is float is a keyword in java?

yes, float is keyword and data type in java