Computer Applications
Related Questions
What is the output of this program?
class Output { public static void main(String args[]) { Integer i = new Integer(257); byte x = i.byteValue(); System.out.print(x); } }- 0
- 1
- 256
- 257
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
Name the numeric wrapper classes in Java.
What is the need of wrapper classes when there are primitive datatypes ?