Computer Applications
In which package is the wrapper class Integer available?
- java.io
- java.util
- java.awt
- java.lang
Java Library Classes
5 Likes
Answer
java.lang
Reason — All the wrapper classes are available in java.lang package.
Answered By
4 Likes
Related Questions
Name the method that can convert a string into its integer equivalent.
- Integer.parseInteger()
- Integer.getInt()
- Integer.parseInt()
- Integer.readInt()
What will be the result when the following statement is executed?
int count = new Integer(12);- Variable count will be initialised with value 12.
- Variable count will be initialised with default value of int, i.e., zero (0).
- An array count will be initialised with 12 elements, all having a default value of zero (0).
- Value of count will be unknown as no value has been assigned yet.
What are the library classes in Java? What is their use?
Define Primitive data type