Hello World
Simplest method to output a text string to standard output device
Learning Objectives
To learn java concepts related to :
- A simplest method for showing the output to console.
Source Code
Run Output
Code Understanding
System.out.print(“Hello World!“);
In this statement we have used the method System.out.println() method to show a text literal to out standard output device which is usually the console.
Notes
In java the n escape sequence type of addition to display strings are usually not required as it already has println() and print() methods which means print a line and move to new line or just print a line.
Suggested Filename(s): HelloWorld.java
sunmitra| Created: 17-Jul-2016 | Updated: 8-Dec-2017|