Computer Applications
In which package is the wrapper class Integer available?
- java.io
- java.util
- java.awt
- java.lang
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