Core Java Fundamentals ยท Java Basics
Java History and Features
Learn about Java's origin, evolution, and key features that make it popular
Welcome.java
// Java - Write Once, Run Anywhere
public class Welcome {
public static void main(String[] args) {
System.out.println("Welcome to Java!");
System.out.println("Platform Independent");
System.out.println("Object-Oriented");
System.out.println("Secure & Robust");
}
}
Step by step
- Java was created by James Gosling at Sun Microsystems in 1995. The "Write Once, Run Anywhere" philosophy allows Java code to run on any platform with a JVM.
- The main method is the entry point of every Java application. It's where program execution begins.
- Platform Independence: Java bytecode runs on any system with a JVM, making it truly portable.
- Object-Oriented: Everything in Java is an object (except primitives), promoting code reusability and modularity.
- Security & Robustness: Java has built-in security features and strong memory management to prevent common programming errors.
- Security & Robustness: Java has built-in security features and strong memory management to prevent common programming errors.