Which of the follwoing returns more than one value associated with parameter?
-
Getparameter()
-
getParameterValue()
-
getParameterValues()
-
getParamValues()
C
Correct answer
Explanation
The getParameterValues() method returns all values for a parameter that has multiple values (like multi-select dropdowns or checkbox groups). It returns a String array containing all values. getParameter() returns only the first value, while getParameterValue() and getParamValues() are not standard servlet API methods.