Java QUIZ

Instructions:

  • Total Number of Questions: 10
  • Score out of: 10
  • Time alloted: 30 seconds per question, total 30 minutes
  • Each question carry 1 mark
  • No negtive marking

NOTE:

Select one option as answer, for per question and then Click 'Submit and Next' button for next question

Click the 'Result' button after 10th question to get you score.

Do not refresh the Page.

1. With regard to the servlet context listener, which of the following methods is valid?

2. Which of the following object of HttpSession can be used to view and manipulate information about a session?

3. An abstract class can have non-abstract methods.

4. Which of the following is a valid long literal?

5. A class can be transient

6. TreeSet maintains which order?

7. Which of the following is not an event listener adapter defined in the java.awt.event package?

8. Implement the Listener interface and overrides its methods is required to perform in event handling.

9. Following code will result in: int a1 = 5; double a2 = (float)a1;

10. In Iterator, hasMoreElements() method of Enumeration has been changed to: