A collection of standalone Java programs I’ve been building, practicing, and pushing over time. This repo serves as a learning archive as well as a reference library for anyone exploring Java Basics, DSA, OOP, and General Problem-Solving and also the advacnce topic like Muti-Threading, Garbage-Collection, OverRiding, OverLoading, Inheritence, Collection-FrameWork File-IO-Operations and Exception-Handling. Also it contains all the Advance Java JDBD , Servlet Programming snippit So i think it help a Lot.
- Core Java Programs → Basics, loops, conditionals, Funtions, Operator, Arthematics And keywords.
- OOP Concepts → Classes, Objects, Inheritance, Polymorphism, Abstraction, Interfaces, OverRidding, OverLoading And Constructor.
- DSA Implementations → Sorting, Searching, LinkedList, Stack, Queue, Trees, Graphs.
- Utility Programs → File handling, String manipulations, Number conversions, GarbageCollection, ExceptionHandling, Try-Catch-Finally, IO-Operations etc.
Each program is written as a standalone
.javafile so you can run them independently.
-
Clone the repo:
git clone https://github.com/akmalkhan0/Java-Programs.git cd Java-Programs -
Compile any program:
javac ProgramName.java
-
Run it:
java InnerName
- Strengthen Core Java knowledge
- Practice Data Structures & Algorithms
- Build a foundation for full-stack Java development
- Document learning with clean, organized code
📂 Java-Programs ├─── 📂 Adv_Java/ # Directory & some p*.java files │ ├─── 📂 day1/ # Directory & some p*.java files │ └─── 📂 day2/ # Directory & some p*.java files ├─── 📂 Core_java/ # Directory │ ├─── 📂 day1/ # Directory & some p*.java files │ ├─── 📂 day10/ # Directory & some p*.java files │ │ ├─── 📂 server/ # Server-side code │ │ │ ├─── 📄 Client.java # Java source file │ │ │ ├─── 📄 DBConnection.java # Java source file │ │ │ ├─── 📄 ojdbc8.jar # Oracle Drivers for JDBC Connection │ │ │ └─── 📄 Server.java # Java source file │ ├─── 📂 day11/ # Directory & some p*.java files │ ├─── 📂 day12/ - │ ├─── 📂 day13/ - │ ├─── 📂 day14/ - │ ├─── 📂 day15/ - │ ├─── 📂 day16/ - │ ├─── 📂 ..... - │ ├─── 📂 day18/ - │ ├─── 📂 day19/ - │ ├─── 📂 day2/ - │ ├─── 📂 day3/ - │ ├─── 📂 .... - │ ├─── 📂 day5/ - │ ├─── 📂 .... - │ ├─── 📂 .... - │ ├─── 📂 .... - │ ├─── 📂 day*/ # Directory & some p*.java files │ ├─── 📂 DSA/ # Directory │ │ └─── 📂 STACK/ # Directory │ │ ........ │ ├─── 📂 Pattern/ # Directory │ │ ├─── 📄 p1.java # Java source file │ │ ........ # some more files │ └─── 📂 pattern copy/ # Directory │ ├─── 📄 p1.java # Java source file │ ....... # Some more Files ├─── 📄 .gitignore # Git ignore rules └─── 📄 README.md # Project documentation (you can reorganize your repo later into folders like this)
✨ Every commit = one step ahead in my Java journey. Author : - Akmal Khan ❤️