1. When declaring the main method, which modifier must come first, public or static?
[ ]
a) public b) static c) both d) None
2. Java language is [ ]
a) Robust b) Multithreaded c) Architecture Neutral d) All of the above
3. If a method takes primitive types as a parameter, then Java uses [ ]
a) Call-by-value b) call-by-reference c) both d ) None
4. Just before Garbage Collector runs, which method is called [ ]
a) final() b) gc( ) c) finalize( ) d) main( )
5. A static method can [ ]
a) directly access Instance variable b) refer this c) refer super d) None
6. Advantage of Generics [ ]
a) Type-safety b) run time checking c) a & b d) None
7. PrintWriter class is [ ]
a) Character stream b) byte stream c) character & byte stream d) None
8. Button class generates ________________________Event.
a) Item b) Adjustment c) Action d) All
9. __________ inheritance is not supported by JAVA.
a) Multilevel b) Single c) Hierarchical d) multiple
10. ScrollBar generates ___________________________event.
a) Item b) Adjustment c) Action d) All
Key:
1. C
2. D
3. A
4. C
5. D
6. A
7. A
8. C
9. D
10. B