• +91 9723535972
  • info@interviewmaterial.com

Servlet Interview Questions and Answers

Question - Write a simple Servlet program to print the contents of HTML.

Answer -

We can print the contents of HTML using the following steps:

Step 1: Get the object of PrintWriter using request.

PrintWriter out = response.getWriter();
Step 2: Now print HTML.

out.println("Hello World");

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners