What is Java ?

Home / Java / What is Java ?

Java is a popular programming language that was first released by Sun Microsystems in 1995. It is an object-oriented language that is designed to be simple, portable, and platform-independent, meaning that code can be run on any device or operating system that has a Java Virtual Machine (JVM) installed.

It is used to build a wide variety of applications, from small desktop applications to large-scale enterprise systems. It is also commonly used for developing Android mobile apps.

Download

Here’s an example of a simple “Hello World” program written:

Java Code

public class HelloWorld {
    public static void main(String[] args) {
         System.out.println("Hello, World!");
    }
} 

In this program, we define a class called HelloWorld with a single method called main(). This is the entry point of our program, and it’s where the execution starts.

Inside the main() method, we use the System.out.printIn() method to output the string “Hello World” to the console.

To run this program, we would typically save the code in a file with the extension  .java, compile (such as the one included with the Java Development Kit), and then execute the resulting bytecode using a  (JVM).

Recent Post