Log In Register

Units


Integer, Long & Character Wrappers - Questions and Answers

 

Practice these Integer, Long & Character Wrappers under Java Programming walk-in interview Questions/ examination questions with best tricks and short cuts with solution. Student (candidate) who want to crack the walk in interview, competitive exams and want to find short cuts and tricks to solve questions on Integer, Long & Character Wrappers for following purpose.


– Anyone who is wishing to increase their perfect knowledge of Integer, Long & Character Wrappers of Java Programming.
– Anyone who is preparing for aptitude test and increase his in depth aptitude knowledge Java Programming specifically Integer, Long & Character Wrappers.
– Anyone who is preparing for interviews (competitive examinations, govt examinations and bank examinations, off-campus or on campus interviews, walk-in interview and company interviews) having questions on Integer, Long & Character Wrappers under Java Programming.

– Anyone who is preparing for aptitude test or competitive exam or entrance exam.
– Anyone who is preparing for entrance examinations and other competitive examinations.
– All Experienced, Freshers and Students.

Here is list of Questions and Answers covering all key area of  Integer, Long & Character Wrappers topic of Java Programming:

 

1. Which of these is wrapper for simple data type char?

Answer: Option B

Explanation:

2. Which of these methods is used to obtain value of invoking object as a long?

Answer: Option B

Explanation:
long longValue() is used to obtain value of invoking object as a long.

3. Which of these is a super class of wrappers Long, Character & Integer?

Answer: Option D

Explanation:
Number is an abstract class containing subclasses Double, Float, Byte, Short, Integer and Long.

4.  Which of the following is method of wrapper Integer for converting the value of an object into byte?

Answer: Option B

Explanation:

5. Which of these is a wrapper for data type int?

Answer: Option A

Explanation:

6. Which of the following methods is a method of wrapper Integer for obtaining hash code for the invoking object?

Answer: Option C

Explanation: