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 results-driven tech professional with 8+ years of experience in web and mobile development, leadership, and emerging technologies.
After completing his Master’s in Computer Applications (MCA), he began his journey as a programming mentor, guiding 100+ students and helping them build strong foundations in coding. In 2019, he founded Owlbuddy.com, a platform dedicated to providing free, high-quality programming tutorials for aspiring developers.
He then transitioned into a full-time programmer, where his hands-on expertise and problem-solving skills led him to grow into a Team Lead and Technical Project Manager, successfully delivering scalable web and mobile solutions. Today, he works with advanced technologies such as AI systems, RAG architectures, and modern digital solutions, while also collaborating through a strategic partnership with Technobae (UK) to build next-generation products.
