What is Java?
Table of Contents
Introduction to Java
Java is a high-level, class-based, object-oriented programming language designed to have as few implementation dependencies as possible. It is a general-purpose programming language that allows programmers to **write once, run anywhere (WORA)**, meaning compiled Java code can run on all platforms without recompilation.
Key Features of Java
Java is popular because it offers safety, ease-of-use, and robustness:
1. Object Oriented
In Java, everything is an Object. It can be easily extended since it is based on the Object model structure layout controller.
2. Platform Independent
Compiled Java code is bytecode, which runs inside a Virtual Machine (JVM) on any platform direct connection.
Simple Java Program
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
In the code above, main is the
starting point.