1. Garbage collection is performed by a low priority thread.
Ans: True
2. Garbage collection can not be forced to happen.
Ans: True 3. The following definition for main method (an entry point of a java application) is valid.
public static void Main(String args[])
Ans: False
4. The “null” is a reserved java keyword.
Ans: True
5. The following variable declaration is valid in java.
byte b=128;
Ans: False
6. The “char” type in java is 16 bit and signed.
Ans: False
7. Which method is used to request for garbage collection?
Ans: System.gc()
8. The default value of Boolean in java is ___.
Ans: false
9. The garbage collector will usually call on object’s ___ method just before the object is garbage collected.
Ans: finalize
10. The following declaration of array type in java is correct.
int number[]=new number[12];
Ans: false
No comments:
Post a Comment