Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OopsJavaExercise: Core Java & OOP Concepts

Course: Object-Oriented Programming in JAVA Lab (BCA39109) | Program: Bachelor of Computer Applications (BCA) - 3rd Semester, Brainware University

📖 Repository Description

OopsJavaExercise is a comprehensive collection of Java programming exercises designed to build a strong foundation in Object-Oriented Programming (OOP). This repository serves as a practical archive of lab assignments, demonstrating everything from basic Java syntax to advanced concepts like multithreading, custom exception handling, the Java Collections Framework, and modern data structures (Java Records).

🧠 Core Concepts Mastered

This repository contains functional code proving proficiency in the following areas:

  • Object-Oriented Design: Classes, Objects, Constructors, and Encapsulation.
  • Inheritance: Single, Multilevel, and Hierarchical class structures using the extends keyword and super() methods.
  • Polymorphism: Compile-time (Method Overloading) and Runtime (Method Overriding).
  • Abstraction: Utilizing abstract classes and Java Interfaces to implement multiple inheritance.
  • Exception Handling: Using try-catch-finally blocks and propagating custom exceptions (e.g., throw new CustomException).
  • Concurrency: Creating and managing multithreaded applications using both the Thread class and the Runnable interface.
  • Data Structures (Collections): Practical implementation of Vector, HashSet, and HashMap for dynamic data management.
  • Modern Java: Utilizing Java 14+ record types for immutable data carriers.

📂 Project Highlights

(A quick overview of the major systems built in this repository)

  • 📚 Library Management System: Demonstrates deep class interaction, object arrays, and encapsulation.
  • 🏢 Personnel / Educational Staff Systems: Showcases multi-level inheritance and dynamic method dispatch for calculating salaries based on employment type.
  • 🚗 Vehicle Hierarchy System: Illustrates the use of protected access modifiers and super constructor chaining.
  • 🧵 Multithreaded Printers: Proves understanding of CPU context switching using Thread.sleep() and parallel execution.
  • 📇 Employee Record Manager: A lightning-fast, map-based database utilizing immutable Java Records.

🛠️ Prerequisites & Setup

To compile and run the code in this repository, you will need:

  • Java Development Kit (JDK): Version 16 or higher is recommended (required for Java Records).
  • A standard terminal, command prompt, or an IDE like IntelliJ IDEA, Eclipse, or VS Code.

🚀 How to Compile and Run

Navigate to the directory containing the specific .java file and run standard compilation commands:

  1. Compile the byte code:

About

A comprehensive collection of Java exercises demonstrating core Object-Oriented Programming principles, multithreading, exception handling, and the Java Collections Framework. Developed for the BCA39109 Java Lab curriculum.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages