Sail E0 Webinar

MCQs

Total Questions : 19 | Page 1 of 2 pages
Question 1. Which of these is wrapper for simple data type char?
  1.    Float
  2.    Character
  3.    String
  4.    Both b & c
 Discuss Question
Answer: Option B. -> Character


Character


Question 2. Which of the following is method of wrapper Integer for converting the value of an object into byte?
  1.    bytevalue()
  2.    byte bytevalue()
  3.    Bytevalue()
  4.    Byte Bytevalue()
 Discuss Question
Answer: Option B. -> byte bytevalue()


byte bytevalue()


Question 3. Which of these methods is used to obtain value of invoking object as a long?
  1.    long value()
  2.    long longValue()
  3.    Long longvalue()
  4.    Long Longvalue()
 Discuss Question
Answer: Option B. -> long longValue()


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


Question 4. Which of these class have only one field 'TYPE'?
  1.    Void
  2.    Process
  3.    System
  4.    Runtime
 Discuss Question
Answer: Option A. -> Void


The Void class has one field, TYPE, which holds a reference to the Class object for the type void.


Question 5. Which of the following method of Process class can terminate a process?
  1.    void kill()
  2.    void destroy()
  3.    void terminate()
  4.    void exit()
 Discuss Question
Answer: Option B. -> void destroy()


Kills the subprocess. The subprocess represented by this Process object is forcibly terminated.


Question 6. Which of these classes is not included in java.lang?
  1.    Byte
  2.    Integer
  3.    Array
  4.    Class
 Discuss Question
Answer: Option C. -> Array


Array class is a member of java.util.


Question 7. Which of these is a super class of wrappers Double & Integer?
  1.    Long
  2.    Digits
  3.    Float
  4.    Number
 Discuss Question
Answer: Option D. -> Number


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


Question 8. Which of these is wrapper for simple data type float?
  1.    float
  2.    double
  3.    Float
  4.    Double
 Discuss Question
Answer: Option C. -> Float


Float


Question 9. Which of these is a process of converting a simple data type into a class?
  1.    type wrapping
  2.    type conversion
  3.    type casting
  4.    None of the Mentioned
 Discuss Question
Answer: Option B. -> type conversion


type conversion


Question 10. Which of the following is method of wrapper Float for converting the value of an object into byte?
  1.    bytevalue()
  2.    byte bytevalue()
  3.    Bytevalue()
  4.    Byte Bytevalue()
 Discuss Question
Answer: Option B. -> byte bytevalue()


byte bytevalue()


Latest Videos

Latest Test Papers