Skip to content

majeedev/25_Object-Oriented-Programming-OOP-Practices-in-Java

Repository files navigation

☕ Object-Oriented Programming (OOP) Practices in Java

Made with Java IDE

This repository contains Java practice projects demonstrating Object-Oriented Programming (OOP) concepts and other fundamental Java features.
Each folder/project focuses on a specific topic with practical examples for learning and experimentation.


📂 Projects Overview

Project Folder Concept / Feature Description
Access_modifiers Encapsulation Examples of public, private, protected, and default access modifiers.
Apstract Abstraction Demonstrates abstract classes and abstract methods.
Constructor Constructor Examples of constructors, overloading, and default constructors.
exceptionexample Exception Handling Handling exceptions using try-catch and finally.
importing_package Package Using Java packages and importing classes.
Inheritance Inheritance Demonstrates class inheritance, super keyword, and hierarchy.
Interface_implement Interface Implementing interfaces and multiple inheritance via interfaces.
JavaDB Database Connecting and working with a database using JDBC.
JavaFX_Tabelview JavaFX Example of JavaFX TableView UI component.
JAVAfxHELLOWORLD JavaFX Basic JavaFX application demonstrating window and scene setup.
objectParameter OOP Passing objects as method parameters.
Overloding Polymorphism Method overloading examples in Java.
Overriding Polymorphism Method overriding with runtime polymorphism examples.
Package Package Organizing classes into packages and importing them.
Recursion Recursion Recursive method examples, e.g., factorial or Fibonacci.
ReturnObject OOP Methods returning objects and working with object references.
StaticByName Static Static variables and static methods usage examples.
thisKeyWord Keyword Usage of this keyword for referencing current object.
throw_throws Exception Handling Throwing exceptions and using throws declaration.
try_catch Exception Handling Catching multiple exceptions and exception handling examples.
UseSuper Inheritance Using super to access parent class methods and variables.
usingStringObject String Working with String objects and common string operations.

1. Open the desired project folder in your preferred Java IDE (IntelliJ IDEA, Eclipse, or NetBeans).

2. Compile and run the .java files to explore each concept.

###🎯 Goals

  • Strengthen understanding of Java OOP concepts.

  • Provide hands-on examples for learning and experimentation.

  • Act as a reference for beginners and intermediate Java developers.


🚀 Getting Started

  1. Clone the repository
    git clone https://github.com/majeedev/Object-Oriented-Programming-OOP-Practices-in-Java.git

About

A collection of OOP practice projects written in **Java**

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published