Java Lang in Java MCQs

@T-Bone

This question paper focuses on the "Java Lang" of the Java programming. These Multiple Choice Questions (mcq) should be practiced to improve the Java programming skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.

This question paper focuses on the "Java Lang" of the Java programming. These Multiple Choice Questions (mcq) should be practiced to improve the Java programming skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.

Questions

1. Which of the following would compile without error?

Mark the correct option

2. Which of these classes encapsulate runtime state of an object?

Mark the correct option

3. Which of these classes is not included in java.lang?

Mark the correct option

4. Which of the following will produce an answer that is closest in value to a double, d, while not being greater than d?

Mark the correct option

5. Which of these methods returns the class of an object?

Mark the correct option

6. Which of these class have only one field "TYPE"?

Mark the correct option

7. Which of the following method of Process class can terminate a process?

Mark the correct option

8. Standard output variable "out" is defined in which class?

Mark the correct option

9. Which of these class can encapsulate an entire executing program?

Mark the correct option

10. Which of the following is method of System class is used to find how long a program takes to execute?

Mark the correct option

11. Which of these is a process of converting a simple data type into a class?

Mark the correct option

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

Mark the correct option

13. Which of these methods is used to check for infinitely large and small values?

Mark the correct option

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

Mark the correct option

15. Which of the following method of Process class can terminate a process??

Mark the correct option

Index of Questions