TODAY JAVA SCHOOL

In java school, programming, design, computer general knowledge, web application, software, web services, social media, digital marketing, oops, concept of programming language, oops feature, console media, graphics medium, first programming, c, c ++ , Java, PHP, SQL, MySQL, HTML, HTML_5, J_query, JavaScript, Bootstrap, Framework, images with logos, examples, shared and explained.

https://www.amazon.in/b?node=26373545031&linkCode=ll2&tag=1234567801cdb-21&linkId=3b9882431b00409b44141e0344b35a15&language=en_IN&ref_=as_li_ss_tl

Breaking

Thursday, 16 April 2020

ServletOutputStream Class In Java | Explain ServletOutputStream Class In Java

ServletOutputStream class

ServletOutputStream class provides a stream to write binary data into the response. It is an abstract class.
The getOutputStream() method of ServletResponse interface returns the instance of ServletOutputStream class. 

image or program of servletoutputstream class in java
Fig: Servletoutputstream class


Example:

        ServletOutputStream out=response.getOutputStream();  

Methods of ServletOutputStream class

The ServletOutputStream class provides print() and println() methods that are overloaded.
1.    void print(boolean b){}
2.    void print(char c){}
3.    void print(int i){}
4.    void print(long l){}
5.    void print(float f){}
6.    void print(double d){}
7.    void print(String s){}
8.    void println{}
9.    void println(boolean b){}
10.  void println(char c){}
11.  void println(int i){}
12.  void println(long l){}
13.  void println(float f){}
14.    void println(double d){}
15.  void println(String s){}

No comments:

Post a Comment