Object-Oriented Programming (OOP) in
Java – BTech 2nd Year Notes
Syllabus Overview
Unit 1: Introduction to OOP and Java Basics
• Principles of OOP: Abstraction, Encapsulation, Inheritance, Polymorphism
• Differences between Procedural and OOP
• History of Java and its features
• Java Environment: JDK, JRE, JVM
• Basic syntax, Data types, Variables, Operators, Control structures
Unit 2: Classes and Objects
• Class declaration
• Creating Objects
• Methods, Constructors (Default, Parameterized)
• `this` keyword, static keyword
• Overloading
Unit 3: Inheritance and Interfaces
• Types of Inheritance in Java
• `super` keyword
• Method Overriding
• Abstract classes and methods
• Interfaces and multiple inheritance
Unit 4: Polymorphism and Encapsulation
• Compile-time vs Runtime polymorphism
• Final keyword
• Encapsulation with access modifiers (private, public, protected)
• Packages
Unit 5: Exception Handling and File I/O
• Exception types: checked & unchecked
• Try-catch-finally, throw, throws
• Custom Exceptions
• File handling: FileReader, FileWriter, BufferedReader
Unit 6: Multithreading and Collections
• Thread creation: Thread class & Runnable interface
• Thread life cycle, Synchronization
• Collections framework: List, Set, Map, ArrayList, HashMap