CodeToConcept
About

java

java Tutorials

Introduction
Java Variables
Java Data Types
Java Type Casting
Java Operators
Java Input/Output
Java Class & Object
java Method
Java Constructor
Java this keyword
Java super keyword
Java Method Overloading and Overriding
Java Interface
Java Abstract Class
Java Memory Management
Design Patterns
JDBC (Database Connectivity)
Java IDEs

java Tutorials

Introduction
Java Variables
Java Data Types
Java Type Casting
Java Operators
Java Input/Output
Java Class & Object
java Method
Java Constructor
Java this keyword
Java super keyword
Java Method Overloading and Overriding
Java Interface
Java Abstract Class
Java Memory Management
Design Patterns
JDBC (Database Connectivity)
Java IDEs

Sample Question

Think it through, then check the tutorial.

CodeToConcept

Quickly learn through simple, structured, and practical coding tutorials. Build your confidence from step zero to real-world experience.

© 2026 CodeToConcept. All rights reserved.

Quick Links

AboutTutorials

Tutorials

JavaHTMLCSS

Support

Privacy PolicyTerms of ServiceContact
GitHubTwitterYouTube

Java IDEs

Basic Java Program

Use this basic program in each IDE below.

public class HelloWorld {
    public static void main(String[] args) {
        String name = "Mira";
        System.out.println("Hello, " + name);
    }
}

Output:

Hello, Mira

Create and Run the Program in Different IDEs

Use the HelloWorld program above in each IDE. Install a JDK before starting. The menu names may vary slightly between versions.

IntelliJ IDEA

  1. Open IntelliJ IDEA and select New Project.
  2. Select Java, enter JavaPractice as the project name, and choose an installed JDK. Use the IntelliJ build system for this basic example.
  3. Create the project. In the project panel, right-click the src folder and select New > Java Class.
  4. Enter HelloWorld as the class name. Replace the generated class with the program above.
  5. Click the run icon beside main and select Run 'HelloWorld.main()'.
  6. Check the Run window. It should display Hello, Mira.

See the IntelliJ IDEA Java guide for the project options in your version.

Eclipse IDE

  1. Open Eclipse and choose a workspace folder. This folder holds your projects.
  2. Select File > New > Java Project. Enter JavaPractice, choose the installed JDK, and finish creating the project. If asked to create module-info.java, select Don't Create for this example.
  3. Right-click the project's src folder and select New > Class.
  4. Enter HelloWorld as the class name. Keep the package field empty for this small example, then click Finish.
  5. Replace the generated class with the program above.
  6. Right-click HelloWorld.java and select Run As > Java Application. The Console should display Hello, Mira.

See the Eclipse Java project guide for more setup details.

Apache NetBeans

  1. Open NetBeans and select File > New Project.
  2. Choose Java with Maven > Java Application and click Next.
  3. Enter JavaPractice as the project name, complete the required project details, and click Finish.
  4. Under Source Packages, right-click the generated package and select New > Java Class. Name the class HelloWorld.
  5. Keep the generated package line at the top. Place the HelloWorld class from the example below that line, replacing the generated class.
  6. Right-click HelloWorld.java and select Run File. The Output window should display Hello, Mira.

The first Maven build may download the tools it needs. See the NetBeans Java quick start for project creation details.

Visual Studio Code

  1. Install Extension Pack for Java in VS Code and make sure a JDK is installed.
  2. Open the Command Palette and select Java: Create Java Project.
  3. Choose No build tools, select a folder, and enter JavaPractice as the project name.
  4. In the src folder, create HelloWorld.java and add the program above.
  5. Click Run above the main method.
  6. Check the terminal for Hello, Mira.

See the VS Code Java project guide for the Java project commands.

See you in next page....🙂

← JDBC (Database Connectivity)Overview →
← JDBC (Database Connectivity)Overview →