Menu
Popular Courses
Search

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()


Share this page with your friends!

Share this page with your friends!

Latest Videos

Chapter 1 - GLOBAL STEEL SCENARIO & INDI Part 1 : (13-04-2024) INDUSTRY AND COMPANY AWARENESS (ICA)
Direction Sense Test Part 1 Reasoning (Hindi)
Chapter 1 - RMHP / OHP / OB & BP Part 1 : (14-02-2024) GPOE
Cube & Cuboid Part 1 Reasoning (Hindi)
Data Interpretation (DI) Basic Concept Reasoning (Hindi)
Counting Figures Part 1 Counting Of Straight Lines Reasoning (Hindi)
Real Numbers Part 7 Class 10 Maths
Real Numbers Part 1 Class 10 Maths
Polynomials Part 1 Class 10 Maths

Latest Test Papers

Chapter 3.1 : Overview of Finance & Acco Chapter 3 : Finance & Accounts SAIL E0 - GFM 2024
Chapter 2.1 : Overview Chapter 2 : Materials Management SAIL E0 - GFM 2024
Chapter 1.1 : Personnel Functions- An ov Chapter 1 : Personnel Management SAIL E0 - GFM 2024
GPOE / GPA Combined 1 Free CBT Mock Test SAIL E0 2024
CBT Mixed Test 1 GPOE/GPA SAIL E0 2024