This repository contains my Java laboratory work, organized by lab folders and packages.
Topics:
- abstract classes
- inheritance
- polymorphism
- encapsulation
- garage management
Main classes:
- Vehicle
- Car
- Motorcycle
- Truck
- Garage
Topics:
- OOP
- inheritance
- custom exceptions
- deposit / withdraw logic
Main classes:
- BankAccount
- SavingsAccount
- InvalidAmountException
- InsufficientFundsException
- BankApp
Topics:
- List
- Set
- Map
- sorting
- duplicates removal
- student management
Tasks implemented:
- Task 1: Student names with ArrayList
- Task 2: Sum and average of integers
- Task 3: Reverse a list
- Task 4: Unique words counter
- Task 5: Word frequency counter
- Task 6: Phone book
- Task 7: Students Management System
- Task 8: Sort Students
- Task 9: Remove Duplicates
- Task 10: LRU Cache (simplified)
- Task 11: Merge Two Maps
Topics:
- generic classes
- generic methods
- bounded types
- wildcards
- generic stack
Tasks implemented:
- Task 1: Generic class with private field of type T, constructor, getter and setter
- Task 2: Generic method
printTwice(T value) - Task 3: Bounded generic method
max(T a, T b)usingComparable - Task 4: Method
countfor generic lists - Task 5: Copy elements between generic lists using wildcards
- Task 6: Generic Stack implementation with
push,pop,peek,isEmpty
Topics:
- Maven
- JDBC
- H2 in-memory database
- CRUD operations
- relational databases
Tasks implemented:
- Create
moviestable - Insert movies into database
- Read all movies from database
- Update movie title by id
- Delete movie by id