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
What is Client-Server Computing?
What are the different mode that servlets can be used?
how many jsp scripting elements are there and what are those?
Given the request path below, which are context path, servlet path and path info?
Define declaration.
Difference between forward() method and sendredirect() method ?
Is servlet a server side scripting language?
Explain how does JSP handle run-time exceptions?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
What are important features of Servlet 3?
Can we use the constructor, instead of init(), to initialize servlet?
What are the types of protocols supported by httpservlet ?
What is the servlet?
If servlet receives multiple requests, how many objects will it create?
Explain the servlet context.