Java program to print message without using System.out.println()

Java

Video is ready, Click Here to View ×


This video explains how to print message without using ideal System.out.prinln() in Java.

We are using System.out.prinln() to print message in console, but there are other methods also a Java developer can use to print message.
1. System.out.write();
2. System.out.formate();
3. using PrintStream class
4. System.err.print()
5.System.console().writer().println();: this method works only when we run our program using terminal or command prompt as System.console() returns null if your…

2 thoughts on “Java program to print message without using System.out.println()

Leave a Reply

Your email address will not be published. Required fields are marked *