Computer Applications
Name the numeric wrapper classes in Java.
Java Library Classes
6 Likes
Answer
The numeric wrapper classes in Java are:
- Byte for byte data type
- Short for short data type
- Integer for int data type
- Float for float data type
- Long for long data type
- Double for double data type
Answered By
5 Likes
Related Questions
What is the output of this program ?
class Output { public static void main(String args[]) { Integer i = new Integer(514); float x = i.floatValue(); System.out.print(x); } }- 0
- 1
- 257
- 514.0
What are wrapper classes?
What is the need of wrapper classes when there are primitive datatypes ?
When do the numeric wrapper class constructors raise NumberFormatException ?