First Program in Java

We will not waste our time we will directly move towards our Hello World first program in java. After writing our first program we will discuss the various things of our program why we are using them in our code what impact they are making in our code.

Before starting, if you have a background in c++ or any other Object Oriented Language then that experience will help you in this series. But don’t worry Java is not that much though in starting things may be confusing for you but with the time you find everything very easy.

Please keep it in your mind that, we can not write any Method or variable outside of class, It means the main function will be also part of any class.

Java Code

class FirstProgram 
     public static void main(String []args)
        System.out.println("Hello World Our First Program in Java");


Spread the love
Scroll to Top