Programming - Introduction to OOPS
You Are Here :: Home > JAVA > Introduction to OOPS - General Questions
25. |
when a class becomes an object?
|
A. |
at physically forms |
B.
|
at runtime forms |
C.
|
both
|
D.
|
none
|
|
Answer: Option B
Explanation:
at runtime,a class can create objects. |
|
26. |
object is called as ____________
|
A. |
object |
B.
|
instance |
C.
|
class
|
D.
|
polymorphism
|
|
Answer: Option B
Explanation:
object is also called as instance |
|
27. |
person Raju = new person();
what is Raju and person respectively?
|
A. |
object and class |
B.
|
class and object |
C.
|
class and class
|
D.
|
object and object
|
|
Answer: Option A
Explanation:
here class name is person and Raju is declared as object for the class person. |
|
28. |
Data members of a class are also known as __________________
|
A. |
attributes |
B.
|
field |
C.
|
property
|
D.
|
all the above
|
|
Answer: Option D
Explanation:
Attribute are the data members of a class. |
|
29. |
Methods of a class are known as _______________________
|
A. |
behaviour |
B.
|
Accesseries |
C.
|
both
|
D.
|
none
|
|
Answer: Option C
Explanation:
Methods of a class are known as behaviour or accessries |
|
30. |
Existece of classes and objects in java are ____________________ and ______________ respectively
|
A. |
logical and physical |
B.
|
physical and logical |
C.
|
none
|
D.
|
not determined
|
|
Answer: Option A
Explanation:
Existence of classes and objects in java are logical and physical. |
|
« prev
next »