This repository contains my Java practice programs, created while learning and revising important concepts of Java programming. The goal of this repository is to keep track of my progress, strengthen my coding skills, and build a collection of examples that demonstrate core Java concepts.
📚 What’s Inside?
Interfaces – Understanding how to define and implement interfaces.
Inheritance – Reusing and extending classes.
Method Overriding – Redefining methods in child classes.
Encapsulation & Classes – Practicing with objects and attributes.
User Input with Scanner – Handling console-based input/output.
Other upcoming topics – Collections, Exception Handling, File Handling, OOP projects, etc....
How to Run the Programs
Clone the repository:
git clone https://github.com/diwanshi-04/java-practice.git
cd java-practice
Compile the Java file:
javac Main.java
Run the program:
java Main
Why This Repository?
To practice and revise Java concepts.
To track my coding journey.
To build a reference collection for interview prep and projects.
✨ More programs will be added soon as I continue practicing Java!