Programming - Introduction to OOPS
You Are Here :: Home > JAVA > Introduction to OOPS - General Questions
19. |
A class is a model for creating ___________________ and doesnot exist __________
|
A. |
classes,objects |
B.
|
objects |
C.
|
methods
|
D.
|
objects,physically
|
|
Answer: Option D
Explanation:
A class is a model for creating objects and doesn’t exist physically. |
|
20. |
A class is a __________________ for creating object.
|
A. |
structure |
B.
|
method |
C.
|
blueprint
|
D.
|
model
|
|
Answer: Option C
Explanation:
A class is a blueprint for creating objects. |
|
21. |
To write a class, __________________________ of object should follow the class.
|
A. |
Characterstics |
B.
|
method |
C.
|
data
|
D.
|
structure
|
|
Answer: Option A
Explanation:
Characteristics of a object should follow the class. |
|
22. |
Objects are created on _______________________ by JVM at _________
|
A. |
heap memory and run time Processing |
B.
|
Stack memory and physical processing |
C.
|
heap memory and physical processing
|
D.
|
stack memory and runtime processing
|
|
Answer: Option A
Explanation:
At run time processing,objects are created on heap memory. |
|
23. |
How many objects can be created for a class?
|
A. |
one |
B.
|
two |
C.
|
several
|
D.
|
none
|
|
Answer: Option C
Explanation:
several objects can be created for a single class. |
|
24. |
An object can exist without a class?
|
A. |
Yes |
B.
|
No |
C.
|
once it can possible
|
D.
|
none
|
|
Answer: Option B
Explanation:
no,without a class objects cannot be created. |
|
« prev
next »