• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What is the different b/w System.out & System.err & System.in

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the different b/w
System.out &
System.err &
System.in

Regards
Dhinesh
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://java.sun.com/j2se/1.3/docs/api/java/lang/System.html#in
 
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Adding to that, they mean for different purposes as the name indicates.

in - for getting inputs from user
out - for displaying any output to the user
err - for displaying any errors to the user

They can be given the handles of any such capable devices by obtaining the Stream to it. A stream is nothing but the channel which facilitates your flow of data.

By default, the input stream is given with the handle of keyboard through or using which the user can provide any inputs. The output and error streams are given with the handle of the Console (also known as "monitor").

For dealing with the different streams you may have a look at the available streams in java.io package.
 
reply
    Bookmark Topic Watch Topic
  • New Topic