If i want to print a line
This is Java programming language
to the console using System.out.print()
, which and how many process gets used to print this line, and how we can compare it with writing the same line to file using FileWriter
or BufferedWriter
.
out
is a static member of class System
having type PrintStream
http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/System.html. You can create PrintStream
objects for files and use them similarly. http://docs.oracle.com/javase/1.5.0/docs/api/java/io/PrintStream.html
Check PrintStream.java file to know the process of print method.
Check here for detailed flow of process
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With