Programming - Introduction to OOPS
You Are Here :: Home > JAVA > Introduction to OOPS - General Questions
31. |
Java Programming allows which type of methods?
|
A. |
member methods |
B.
|
non member methods |
C.
|
both
|
D.
|
none
|
|
Answer: Option B
Explanation:
java program allows only member methods. |
|
32. |
Objects can be created dynamically by _______________ operator.
|
A. |
new |
B.
|
dot |
C.
|
semicolon
|
D.
|
none
|
|
Answer: Option A
Explanation:
new operator is used for creating objects dynamically. |
|
33. |
New operators taken as __________________ place into ________________.
|
A. |
address and L.H.S |
B.
|
reference and L.H.S. |
C.
|
address/reference and L.H.S
|
D.
|
none
|
|
Answer: Option C
Explanation:
new operator taken as address/reference and place into L.H.S. |
|
34. |
when object is not using memory space the value designed to it is __________
|
A. |
null |
B.
|
garbage |
C.
|
zero
|
D.
|
none
|
|
Answer: Option A
Explanation:
null value is stored when object is not usig memory space |
|
35. |
Hungarian Notation is used by _________________ system.
|
A. |
sun micro |
B.
|
solaris |
C.
|
unix
|
D.
|
all
|
|
Answer: Option A
Explanation:
Hungarian notation is used by sun micro system. |
|
36. |
Methods in Java resides in __________________________________
|
A. |
heap memory |
B.
|
stack memory |
C.
|
both
|
D.
|
none
|
|
Answer: Option B
Explanation:
stack memory is used for storing methods in java. |
|
« prev
next »