Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Answers for Servlets Online Test - Online Exam - Online Quiz - Mock Test

←Go Back to Online Practice Test

Ques. 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
©2024 WithoutBook