JAVA QUIZ 1 Which of these keyword must













![9. Determine o/p: Class Demo{ Public static void main(String ag[]){ String obj=“Java Quiz”; System. 9. Determine o/p: Class Demo{ Public static void main(String ag[]){ String obj=“Java Quiz”; System.](https://slidetodoc.com/presentation_image/6cb2553f7baff6fdc22259001a9c5fdc/image-14.jpg)











- Slides: 25
JAVA QUIZ
1. Which of these keyword must be used to inherit a class? A. super B. this C. extent D. extends
2. Which of the following feature is not supported by java? A) Multithreading B) Reflection C) Operator overloading D) Garbage collection
3. Which of the following is not keyword in java? A) Null B) Import C) Volatile D) Package
4. What is the full form of ADT? A) Abstract Data Type B) Abstract Development Tool C) Abstract Design Tool D) Advance Development Tool
5. Java is also known as …. . Stage language? A) One C) Two D) Three B) Four
6. What is Hot. Java? A) System software C) Java environment B) Web browser D) IDE
7. How many way to communicate from applet to servlet? A) 1 B) 2 C) 3 D) 4
8. Which Organisation develop Java? A) Sun Microsystems C) IBM D) Apple B) Microsoft
9. Determine o/p: Class Demo{ Public static void main(String ag[]){ String obj=“Java Quiz”; System. out. print(obj. trim(). length()); } } A)7 C)8 B)9 D)10
10. What is the order of precedence (highest to lowest) of following operators? A) 1 -> 3 -> 2 C)3 ->2 ->1 D)1 ->2 ->3 B) 2 ->1 ->3
11. Which of the interface is in the collection framework? A. Array List B. Array C. Collection D. Treemap
12. Which packae contains the ‘class’ class? A) java. lang B) java. io C) java. util D) java. class
13. Which package contains the calendar class ? A) java. lang B) java. io C) java. util D) java. time
14. Which class is a direct superclass of EOException? A) IOException B) Exception C)Runtime Exception D) Throws
15. Which abstract class is the super class of all classes used for reading bytes? A) Reader B)File Reader C) Input Stream D) Byte Reader
16. Thread priority in java is…? A) Integer B) Float C) String D) Long
17. Which of these is a illegal identifier? A) num_1 B) a_num C) 1_num D) num_1
18. A top level class may have only the following access modifier? A. default B. private C. protected D. public
19. Which package contains the Array. List class? A) java. lang B) java. Arrays C) java. util D) java. collections
20. Which of the following is not a wrapper class? A) String B) Integer C) Float D) Boolean