Answers for Servlets Online Test - Set 1
←Go Back to Online Practice TestQues. Which of the following statements are true about setHeader() and addHeader() methods? |
Option 1. setHeader() sets an existing header, but it will not add any new header. |
Option 2. addHeader() replaces existing header value if the header already exists. |
Option 3. addHeader() adds an additional value to an existing header |
Ans. Option 3 |
Please provide the reason below. The best provided reason will be displayed with your name(if you are logged-in) on website. |
Enter Reason |
Is it helpful?
Yes
No