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.
Page Contents
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");
}
}
Output

Parvesh Sandila is a passionate web and Mobile app developer from Jalandhar, Punjab, who has over six years of experience. Holding a Master’s degree in Computer Applications (2017), he has also mentored over 100 students in coding. In 2019, Parvesh founded Owlbuddy.com, a platform that provides free, high-quality programming tutorials in languages like Java, Python, Kotlin, PHP, and Android. His mission is to make tech education accessible to all aspiring developers.​