Learn Complete Java Lecture 2 | By Rishab Chauhan | Learn & Earn

Basic Structure of a Java Program: Understanding our First Java Hello World Program

Basic Structure of a Java Program

					package com.company; // Groups classes
public class Main{	// Entrypoint into the application
	public static void main(String[]args){
		System.out.println(“Hello World”);


Working of the "Hello World" program shown above :