What is the difference between JspWriter and PrintWriter

Answers were Sorted based on User's Feedback



What is the difference between JspWriter and PrintWriter..

Answer / srinivaskumar.nimmana

This abstract class emulates some of the functionality
found in the java.io.BufferedWriter and java.io.PrintWriter classes,
however it differs in that it throws java.io.IOException from the print methods while PrintWriter does not

Is This Answer Correct ?    10 Yes 3 No

What is the difference between JspWriter and PrintWriter..

Answer / toharpreet

Including basic differences also

1) Package Difference
One is in IO and other is in java x packages

JSPWriter - package javax.servlet.jsp;
PrintWriter - package java.io;

2) Type Differences
One is Abstract class other is class

public class PrintWriter extends Writer {
public abstract class JspWriter extends Writer {

Is This Answer Correct ?    7 Yes 0 No

What is the difference between JspWriter and PrintWriter..

Answer / srinivaskumar.nimmana

JspWriter is abstract class emulates some of the functionality found in the java.io.BufferedWriter and java.io.PrintWriter classes, however it differs in that it throws java.io.IOException from the print methods while PrintWriter does not

Is This Answer Correct ?    5 Yes 2 No

What is the difference between JspWriter and PrintWriter..

Answer / sumitpalsingh

JspWriter class Object is used to print the value in Jsp Page. it is not the object of JspWriter abstarct class it is the object of the class that implements JspWriter i.e. Writer....
PrintWriter class Of java.io package create an objectthatis used in servlet to print the value on console.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Servlets Interview Questions

How to debug a servlet?

2 Answers  


What's the advantages using servlets than using cgi?

0 Answers  


What are the types of ServletEngines?

1 Answers  


What are the security issues in Servlets?

2 Answers  


what is the difference between do get/dopost

9 Answers  






What are all the advantages of servlet over cgi?

0 Answers  


What are the phases of servlet life cycle?

0 Answers  


What is the dispatcher servlet?

0 Answers  


What is the difference between genericservlet and httpservlet

0 Answers  


Is servlet a framework?

0 Answers  


Write a command to get actual path of a servlet to the server?

0 Answers  


What are common tasks performed by Servlet Container?

0 Answers  


Categories