1.
Introduction to Java
1 Java is a high-level programming language
2 Developed by Sun Microsystems
3 Platform independent (Write Once Run Anywhere)
4 Used for web, mobile, and desktop applications
2. Features of Java
1 Object-Oriented
2 Platform Independent
3 Secure and Robust
4 Multithreaded
3. Basic Structure of Java Program
1 class Main {
2 public static void main(String[] args) { }
3 }
4. Data Types
1 Primitive: int, float, double, char, boolean
2 Non-primitive: String, Arrays
5. Variables
1 Local variables
2 Instance variables
3 Static variables
6. Operators
1 Arithmetic operators
2 Relational operators
3 Logical operators
7. Control Statements
1 if, else
2 switch
3 Loops: for, while, do-while
8. Classes and Objects
1 Class definition
2 Object creation
3 Methods and constructors
9. Inheritance
1 Single inheritance
2 Multilevel inheritance
3 Hierarchical inheritance
10. Polymorphism
1 Method overloading
2 Method overriding
11. Abstraction
1 Abstract classes
2 Interfaces
12. Encapsulation
1 Data hiding
2 Use of getters and setters
13. Exception Handling
1 try, catch, finally
2 Types of exceptions
14. Multithreading
1 Thread class
2 Runnable interface
15. Java Collections
1 List, Set, Map
2 ArrayList, HashSet, HashMap