Hello World – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  

Login
[lwa]



Code Learning #JAVA#1353 siteicon   siteicon   siteicon  

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

TC++ #1353

Source Code

Run Output

Hello World!

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



Share

sunmitra| Created: 17-Jul-2016 | Updated: 8-Dec-2017|






Back