Inspirational journeys

Follow the stories of academics and their research expeditions

Start Java from Zero and Write Your First Program

DD Singh

Thu, 26 Jun 2025

Start Java from Zero and Write Your First Program

What to Install?

Sublime Text Editor / JDK / Eclipse

Topic List:

    1) Creating a Java File.

    2) Boilerplate Code

    3) Output in Java

1) Creating a Java File:

          For creating java file, please open the sublime text editor and create one java program.

//This is my very first program.

class First{

      public static void main(String args[]){

                         System.out.println("Hello, Java is For DSA...");

       }

}

Then Compile and Run the Program.

Output in Java:

 To Print any thing on the screen in java we have 2 methods.

   1) print()

   2) println()

   3) \n [Escape Character]

Ex:

    System.out.print("Hi My Name is DD");

    System.out.print("I am teaching u coding from scratch");

    System.out.print("U would find transformation in ur knowledge");

For installation use the below link:

https://www.youtube.com/watch?v=RsrZWdVGZc4

or

 Online Compiler [onlinegdb.com]

For Video Solution of this blog please visit the below link

https://www.youtube.com/watch?v=JH8rUJAx_Mk


0 Comments

Leave a comment