What is the difference between System.console.write and System.out.println ?
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 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

   



Interview Questions and Answers

 Q1. What is the difference between System.console.write and System.out.println ?
Ans. System.console() returns null if your application is not run in a terminal (though you can handle this in your application)System.console() provides methods for reading password without echoing charactersSystem.out and System.err use the default platform encoding, while the Console class output methods use the console encoding

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

   Like         Discuss         Correct / Improve     java   system class   system.out.println   system.console.write   input output   java6      intermediate        rare


Related Questions

  Name few IO Stream classes and interfaces ?
  Name few File IO related classes and interfaces ?
 What is System.in in Java ?
 Explain System.out.println ?
  Tell something about BufferedWriter ? What are flush() and close() used for ?
  Name few Buffered IO classes and interfaces ?
  Name few Writer classes ?
  Name few Reader classes ?
  Difference between Scanner and BufferedReader ? Which one is faster and Why ?



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: