Don't let the Lockdown slow you Down - Enroll Now and Get 3 Course at 24,999/- Only. Explore Now!


Java Basic Programs

Java Basic Programs

Java Basic Programs

Everything in java is executed inside the class. There are three steps to run java program. They are

Step 1:

Type the program in notepad and save the filename should similar to a class name with .java extension.

Class FirstProgram
Public static void main(String[] args)
System.out.println(“This is my first java program”);
Save as

Step 2:

Open command prompt -> goto the file saved path -> Then Compile the java program through Javac


Step 3:

Run the java program through java Filename

Java  FirstProgram


This is my first java program

Click Here-> Get Java Training with Real-time Projects

Besant Technologies WhatsApp