Java Programming Notes
=================================
Author: ChatGPT Learning Notes
Date: 2025-08-09
1. Introduction to Java
------------------------
Java is a high-level, class-based, object-oriented programming language that is
platform-independent.
It was first released by Sun Microsystems in 1995 and later acquired by Oracle.
2. Core Java Concepts
------------------------
- Variables and Data Types
- Operators
- Control Flow Statements (if, switch, loops)
- Methods and Parameters
- Object-Oriented Programming Principles: Encapsulation, Inheritance, Polymorphism,
Abstraction
Example:
```java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
```
3. Collections Framework
------------------------
Java Collections include List, Set, Map interfaces and classes like ArrayList,
HashMap, HashSet.
These help in storing and manipulating groups of objects efficiently.
4. Exception Handling
------------------------
Java uses try-catch-finally blocks for handling runtime errors.
5. Conclusion
------------------------
Java is widely used for desktop apps, mobile apps (Android), and enterprise
systems.