Log In Register


Double & Float Wrappers - Questions and Answers


Practice these Double & Float 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 Double & Float Wrappers for following purpose.

– Anyone who is wishing to increase their perfect knowledge of Double & Float Wrappers of Java Programming.
– Anyone who is preparing for aptitude test and increase his in depth aptitude knowledge Java Programming specifically Double & Float 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 Double & Float 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  Double & Float Wrappers topic of Java Programming:


1.  Which of the following methods return the value as a double?

Answer: Option A


2. Which of these is a super class of wrappers Double and Float?

Answer: Option D

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

3. Which of these exceptions is thrown by compareTo() method defined in double wrapper?

Answer: Option D

 compareTo() methods compare the specified object to be double, if it is not then ClassCastException is thrown.

4. Which of these methods can be used to check whether the given value is a number or not?

Answer: Option A

isNaN() methods returns true if num specified is not a number, otherwise it returns false.

5. Which of these method of Double wrapper can be used to check weather a given value is infinite or not?

Answer: Option B

isInfinite() methods returns true if specified value is an infinite value otherwise it returns false.