1. Introduction to Java
Java is a high-level, object-oriented programming language developed by
Sun Microsystems (now owned by Oracle).
It follows the WORA (Write Once, Run Anywhere) principle, meaning Java
programs can run on any platform with a Java Virtual Machine (JVM).
Java is used in web applications, mobile applications (Android), enterprise
software, and more.
2. Features of Java
Platform Independent – Uses JVM for execution on any OS.
Object-Oriented – Supports concepts like classes, objects, inheritance, and
polymorphism.
Secure – Provides features like bytecode verification and access control.
Robust – Includes automatic garbage collection and exception handling.
Multi-threaded – Supports concurrent execution of multiple threads.
, High Performance – Uses Just-In-Time (JIT) compiler for speed optimization.
3. Java Architecture
Java Development Kit (JDK) – Contains tools to develop, compile, and run
Java programs.
Java Runtime Environment (JRE) – Provides libraries and JVM for executing
Java applications.
Java Virtual Machine (JVM) – Converts bytecode into machine code for
execution.
4. Java Basics
Data Types
Primitive Data Types: int, float, double, char, boolean, byte, short, long
Non-Primitive Data Types: String, Arrays, Classes, Interfaces