Quiz

A
Q. 1 ) Which of the following are true?
Q. 2 ) Exceptions can be caught or rethrown to a calling method.
Q. 3 ) Because finalize () belongs to the java.lang.Object class, it is present in all ___.
Q. 4 ) The this reference is used in conjunction with ___methods.
Q. 5 ) Which of the following statements can be used to describe a public method?
Q. 6 ) The switch statement does not require a break.
Q. 7 ) Character literals are stored as unicode characters.
Q. 8 ) Strings are instances of the class String.
Q. 9 ) What is default layout manager for panels and applets?
Q. 10 ) Which one of the following does not extends java.awt.Component
Q. 11 ) Which one does not have a valueOf(String) method
Q. 12 ) Which of the following are Java reserved words? 1. run 2. import 3. default 4. implement
Q. 13 ) You need to store elements in a collection that guarantees that no duplicates are stored. Which one of the following interfaces provide that capability?
Q. 14 ) What allows the programmer to destroy an object x?
Q. 15 ) Which of the following are valid calls to Math.max? 1. Math.max(1,4) 2. Math.max(2.3, 5) 3. Math.max(1, 3, 5, 7) 4. Math.max(-1.5, -2.8f)
Q. 16 ) Which will contain the body of the thread?
Q. 17 ) Which two of the following methods are defined in class Thread? 1. start() 2. wait() 3. notify() 4. run() 5. terminate()
Q. 18 ) Which is true about a method-local inner class?
Q. 19 ) What is the numerical range of a char?
Q. 20 ) Which is a valid keyword in java?
Please select an option