🎴 Flashcard Mode

Java Programming Fundamentals: OOP, Inheritance, and Language Features

Card1 / 20
Mastered0
Review0
QuestionClick to flip

Which of the following servlet methods can return null?

AnswerClick to flip back
A
getInitParameter(String name)
💡 Explanation:

The getInitParameter(String name) method of a Servlet returns a String containing the value of the named initialization parameter, or null if the parameter does not exist. Other methods like getServletContext() do not return null.

Change Mode