Programming - Classes and Objects
You Are Here :: Home > JAVA > Classes and Objects - General Questions
7. |
The class code along with method code is stored in method area of the__________________.
|
A. |
JIT |
B.
|
JVM |
C.
|
Class
|
D.
|
Library
|
|
Answer: Option B
Explanation:
The class code along with method code is stored in method area of the JVM. |
|
8. |
When an object is created,the memory is allocated on__________________.
|
A. |
Stack |
B.
|
Heap |
C.
|
JIT
|
D.
|
JVM
|
|
Answer: Option B
Explanation:
When an object is created,the memory is allocated on Heap. |
|
9. |
___________________is a unique identification number allocated to the objects by the Jvm.
|
A. |
Hash code |
B.
|
ANSI code |
C.
|
Both a and b
|
D.
|
Binary
|
|
Answer: Option A
Explanation:
Hash code is a unique identification number allocated to the objects by the Jvm. |
|
10. |
The ___________________method of object class in Java.lang package is useful to find the hash code.
|
A. |
hash code() |
B.
|
destroy() |
C.
|
stop()
|
D.
|
init()
|
|
Answer: Option A
Explanation:
The hash code () method of object class in Java.lang package is useful to find the hash code. |
|
11. |
An__________________is a keyword that specifies hoe to access the members of a class.
|
A. |
Acess specifiers |
B.
|
this |
C.
|
new
|
D.
|
final
|
|
Answer: Option A
Explanation:
An Access specifiers is a keyword that specifies hoe to access the members of a class. |
|
12. |
Can you declare a class as "private"?
|
A. |
Yes |
B.
|
No |
C.
|
may be
|
D.
|
cant say
|
|
Answer: Option B
Explanation:
No,you can't declare a class as "private" |
|
« prev
next »