What is the difference between JspWriter and PrintWriter

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by a web application

541


How to make sure a servlet is loaded at the application startup?

557


What do you mean by web applications?

627


Which is better jsp or servlet?

555


What do you mean by cgi in servlet?

631






What are all the advantages of servlet over cgi?

606


What is servlet attributes and their scope?

594


The code in a finally clause will never fail to execute, right?

599


What is the use of request dispatcher interface?

569


Explain load on start-up and its importance?

599


Explain the jar and war files in servlet?

555


Explain request dispatcher and its methods.

583


When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?

574


What are the different methods involved in the process of session management in servlets?

667


When jsessionid is created?

605