Java_Class_Notes
Java_Class_Notes
1. Introduction to Java
Key features:
- Object-oriented
- Strongly typed
- Garbage collection
Popular for building web apps, mobile apps (Android), and enterprise software.
// code
- Inheritance
- Polymorphism
Algorithms Class Notes
- Encapsulation
- Abstraction
Example:
class Car {
String color;
void drive() {}
4. Exception Handling
try {
} catch (Exception e) {
// handle error
5. Collections Framework
Key concepts:
- Thread lifecycle
- Synchronization
- Executor framework