Javatpoint Logo
Javatpoint Logo

Java Console reader() Method

The reader() method of Java Console class is used to retrieve the unique Reader object associated with this console.

Syntax

Parameters

NA

Return value:

This method returns the reader associated with this console.

Example 1

Output:

javaC

Example 2

Output:

Java is an Object Oriented
Next TopicJava Console Class





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA