Multiple choice

Which of the following statements is/are not applicable for the ServletConfig and ServletContext objects?

  1. ServletConfig interface is used to pass the information from the servlet container to the servlet during the servlet initialisation.

  2. The getInitParameter() method returns null if the parameter does not exist.

  3. ServletContext object is an interface between the servlet container and a servlet.

  4. The only ServletContext object should be in a web application.

  5. None of these

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

All the statements are correct.