11. What will be the output : String x='0123456789'; System.out.println(x.substring(5,8));
Answer : 567.
12. The layout of a container can be altered using which of the following methods:
Answer : setLayout(aLayoutManager);.
13. Which statement is true?
Answer : Static member classes can contain non-static methods.
14. How can a client prepare itself for callbacks from RMI server?
Answer : Either of above will work.
15. Which of the following, are valid return types, for listener methods:
Answer : void.
16. Which of the following is not a keyword?
Answer : main.
17. Which of the following is not a Marker Interface?
Answer : Externlizable.
18. Which of the following is not a valid event class?
Answer : MouseMotionEvent.
19. When an applet begins awt call following sequence of method
Answer : init(),start(),paint(),stop(),destroy.
20. The concept of multiple inheritance is implemented in Java by
Answer : extending one class and implementing one or more interfaces.