Explain OUT Implicit Object in JSP?

Sharad Jaiswal
Sharad Jaiswal

Posted On: Mar 22, 2020

 

JSP has several implicit objects or predefined variables that developers can call without being explicitly declared. These are just Java objects and one such object is called Out implicit object.

The out implicit object is an instance of a JspWriter object that is used to send data or some content in response. This object can be declared based on the buffering of the page. The methods provided by this object are,

  • out.print(data type dt) - it prints a data type value.
  • out.println(data type dt) - it prints a data type value and terminates with a new line.
  • out.flush() - it flushes the data stream.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    JSP Interview Questions

    Explain What is JSP?

    JSP, expanded as Java Server Pages is a Java-based technology to create dynamic web pages. Released in 1999 by Sun Microsystems, JSP is based on technologies such as HTML, SOAP, XML, etc...

    JSP Interview Questions

    What is the el in JSP?

    The EL (Expression Language) in the JSP is used to access the data stored in the JavaBeans along with implicit objects like requests, sessions, etc...