🤔 No result found

👉 Don't loose hope, Try out below methods

Ask on Telegram
  • 💡 Search Tips
  • ➡️ Type question from start
  • ➡️ Use unique words from question
  • ❌ Don't search full question
Telegram Group 🔥🔥🔥 Get answers in minutes
Questions answered : 48 /50
Guy
Guy
Guy
Guy
Guy
+ 4981 more
Verified Answer verified

Which method is used to specify before any lines that uses the PrintWriter? [A] setPageType() [B] setContextType() [C] setContentType() [D] setResponseType()

🗓 Nov 13, 2024

Answer is "C"

Comments and Discussions

You don't need to login to post your comment

Comments:
30
Views:
60k
Likes:
120k
votes
Ankit Kumar ~ India 🌐 India
See, setContentType() allow servlet to response to the client by sending exact type of data is reverting back to client system. That allows client system to validate data on the basis of it for further process. In short, try to look into browser's dev tool -> network....... there you will find request sent to server and the data received by by the broswser..... after expanding request you will se Content-type= text/html........... this something Servlet sets with the help of above answer
Was this answer helpful?

Was your question answered?

Thanks for the feedback! ✅

Want to get famous? 📸

Answer question and get 🤩 high-lighted on our homepage.

Just Automated Logo

© 2017-2022 Foxoyo™
All rights reserved.

Facebook Connect with us