Skip to main content

Command Palette

Search for a command to run...

Introduction to Java and write Hello World program in Java

Updated
1 min readView as Markdown
Introduction to Java and write Hello World program in Java
H

Open to learn new technology| Computer Engineer

Hello Hashnode Family, welcome back to my first article on the Java-basics series. In this blog, we will discover the topics like what is java, features of Java, applications of Java, and write HelloWorld program in Java. Let's get started:

What is Java?

Java is a high-level, class-based, object-oriented programming language. It is a general-purpose programming language intended to let programmers write once, run anywhere (WORA). Java is one of the most popular and widely-used programming language. So, it has 1000's libraries available. Java was originally developed by James Gosling at Sun Microsystems.

Features of java:

Java is

  1. Simple and easy to understand
  2. High-level Programming Language
  3. Platform Independent Language
  4. Write Once Run Anywhere(WORA)
  5. Pure Object-Oriented programming language
  6. Case-sensitive

Applications of Java:

Java is used at:

  1. Web Applications
  2. Mobile Applications
  3. Desktop Applications
  4. Web servers
  5. Embedded Systems

Implement HelloWorld program

Create a file with the name HelloWorld.java

// Creata package
package com.hrishi.javaBasics;
// class with HelloWorld
public class HelloWorld {
    // main method 
    public static void main(String[] args) {
        System.out.println("Hello World"); 
        //above line prints the output as "Hello World" without quotes 

    }
}

Thank you for reading my article. Happy coding!!

M
Maddy4y ago

Sweet one! 😁👏🏾

H

Thank you, Maddy

2

Java-Basics-Tutorials

Part 1 of 1

In this series, I will teach the Java basics. Java is one of the popular programming language. I will elaborate the concepts and write articles as I learning them. So, lets get started