Tip:
Highlight text to annotate it
X
Hi! My name is Joseph.
In this video tutorial you will learn about the first program in Java.
Class block
In Java, class block begins with an opening brace.
In Java, class block ends with a closing brace.
Method block
The main method Contains System.out.println statement that displays the string Hello World.
In Java, method block begins with an opening brace and ends with a closing brace.
System.out.println statement that displays the string Hello World.
Attention! System.out.println() statement ends with a semicolon
Compiling helloWorld program.
Compilation will create a .class file
Run helloWorld program.
The result of the helloWorld program code.
Let's modify the helloworld program code.
Again, compiling helloWorld program.
helloWorld.class file was overwritten.
Again, run helloWorld program
The result of the hello World program code after change
Thank you for participating in this video tutorial.