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

Explain the difference between jsp and servlet?

0 Answers  


what is servlet and what you get when we use servlets?

7 Answers   GGK Tech, Satyam,


What is difference between cookies and httpsession?

0 Answers  


What is the functionality of actionservlet and requestprocessor?

0 Answers  


What is meant by cookies?

0 Answers  






What is meant by Servlet? What are the parameters of service method?

0 Answers  


How to get the IP address of client in servlet?

0 Answers  


When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?

0 Answers  


Which is better approach among four(HttpSession,cookie,URL Rewriting, Hidden Fields) Session Tracking technic's ? Why ?

3 Answers   L&T,


What are the different methods involved in generic servlet?

0 Answers  


How to maintain security in servlets?

2 Answers  


what are the disadvantages of cookies?

8 Answers  


Categories