Profile Image

Ramy Ibrahim

Web Developer

Java Ref

Java Overview – Lesson 1 – Hello World

Java is an OOP language (Object Oriented Programming). Which means, you have to organize the code in objects. In this lesson, we will use the console to display the outcome of the code.
First: we need to create a class file.
Class file: is just an editable file, we will use it to put the code in it!
The Class file extension is “.java” so it can be created using any IDE.
The class file name must be the same class name matching the letter case.

In this Example
We have created a file name called “L1_HelloWorld .java” located in the “src” folder.
So the class name will be the same as the following.

Class represents the main container that will include something called the methods.
Let’s say, the Class is the father and the methods are the children.

Download - L1_HelloWorld.java (27 downloads )

Leave a Reply

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