What is the difference between System.out ,System.err and System.in?
Javasearch.buggybread.com
Share

Search Interview Questions


 3356 questions in repository.
 There are more than 200 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Java - Interview Questions and Answers

 Q1. What is the difference between System.out ,System.err and System.in?
Admin
info@buggybread.com
Ans. System.out and System.err both represent the monitor by default and hence can be used to send data or results to the monitor. But System.out is used to display normal messages and results whereas System.err is used to display error messages and System.in represents InputStream object, which by default represents standard input device, i.e., keyboard.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   io   system.out   system.err   system.in   difference between   advanced   basic interview question


Related Questions

  Why is String immutable in Java ?
  Does garbage collection guarantee that a program will not run out of memory?
  Why Char array is preferred over String for storing password?
  Describe what happens when an object is created in Java ?
  Can you provide some implementation of a Dictionary having large number of words ?
  Describe, in general, how java's garbage collector works ?
  Can constructors be synchronized in Java ?
  What are various types of Class loaders used by JVM ?
  Can I import same package/class twice? Will the JVM load the package twice at runtime?
  Different types of memory used by JVM ?




Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner



comments powered by Disqus
 

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked:
         

X Close this