Introduction to Java
Welcome to the first article of Java for DSA series! Before diving into algorithms and data structures, itβs essential to understand the language and environment weβll be working with.
Features of Java
β Simple & Portable β Easy to learn and write, and runs across different platforms.
π§± Object-Oriented β Everything is modeled as objects.
π Platform Independent β Write Once, Run Anywhere (WORA).
π Secure & Dynamic β Features like bytecode verification and dynamic linking.
β‘ High Performance β Thanks to the Just-In-Time (JIT) compiler.
π‘οΈ Robust β Automatic garbage collection and strong memory management.
π Multithreaded β Supports concurrent execution for better performance.
Structure of Program
class test {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
// compiling - javac test.java
// running - java test