1. Which command disassembles a class file_______________? A. javacmd B. javaamd C. javap D. java ✅ The correct answer is option C.
2. In which we clone the object and their constituent parts_______________? A. Deep cloning B. Shallow cloning C. Both of above D. None of above ✅ The correct answer is option A.
3. Suspend thread can be revived by using ? A. yield() method B. Suspend() method C. start() method D. resume() method ✅ The correct answer is option D.
4. Java is known as ___________ stage language? A. 1 B. 2 C. 3 D. 4 ✅ The correct answer is option B.
5. Which collection class associates values witch keys, and orders the keys according to their natural order ? A. java.util.LinkedList B. java.util.TreeMap C. java.util.SortedSet D. java.util.HashSet ✅ The correct answer is option B.
6. Which metrhods are utilized to control the access to an object in multi threaded programming ? A. Synchronized methods B. Asynchronized methods C. Serialized methods D. None of above ✅ The correct answer is option A.
7. Which of the following statements about arrays is syntactically wrong ? A. arrayName[] p = new arrayName[5]; B. arrayName p[][] = new arrayName[2][]; C. arrayName[] p []; D. arrayName p[5]; ✅ The correct answer is option D.
8. The following program: public class Test{ static boolean is OK; public static void main(String args[]){System.out.print(is OK); } } ? A. Prints true B. Prints false C. Will not compile as boolean is not initialized D. Will not compile as boolean can never be static ✅ The correct answer is option B.
9. Which method of java is invoked by JVM to reclaim the inaccessible memory location ? A. reclaim() method B. finalize() method C. final() method D. both b and c ✅ The correct answer is option B.
10. How many primitive data types are there in Java ? A. 5 B. 6 C. 7 D. 8 ✅ The correct answer is option D.