Home
MCQs
Java MCQs
Object Class
Java MCQs

Java MCQs - Object Class

In Object Class MCQs, we will cover following things in it. Object declaration syntax, new operator, class syntax, Java methods, logical mcqs

1. What is an object in Java?

A. static reference

B. template or blueprint

C. instance of class

D. None of above

Answer: C

2. How many characteristics Object has?

A. 2

B. 3

C. 5

D. 1

Answer: B

3. Which are the object characteristics?

A. State

B. Behavior

C. Identity

D. All of above

Answer: D

4. State characteristic of an object represents

A. the data of an object

B. the behaviors or actions of an object

C. the internal unique identity of an object

D. All of above

Answer: A

5. Behavior characteristic of an object represents

A. the data of an object

B. the behaviors or actions of an object

C. the internal unique identity of an object

D. All of above

Answer: B

6. Identity characteristic of an object represents

A. the data of an object

B. the behaviors or actions of an object

C. the internal unique identity of an object

D. All of above

Answer: C

7. Which is the best definition of an object?

A. An object is a real-world entity

B. An object is a runtime entity

C. The object is an instance of a class

D. All of above

Answer: D

8. What is a class in Java?

A. static reference

B. template or blueprint

C. instance of class

D. None of above

Answer: B

9. A Java class can have

A. Fields and Methods

B. Constructors and Blocks

C. Nested class and interface

D. All of above

Answer: D

10. A variable which doesn't get memory at compile time is called?

A. static variable

B. local variable

C. instance variable

Answer: C