Welcome to the ultimate collection of 100 Java programs! This repository is designed to guide learners from absolute basics to advanced topics in Java. Whether you're preparing for interviews, strengthening your fundamentals, or just practicing, this is the perfect place to start.
This repository contains:
- ✅ Beginner programs to understand Java syntax
- ✅ Object-Oriented Programming examples
- ✅ Programs on Arrays, Strings, Patterns, Math
- ✅ Data Structures & Algorithms (Sorting, Searching, etc.)
- ✅ Java Collections, File Handling, Multithreading
- ✅ A Mini Project at the end
- ✅ Organized folders and clean code
Folder | Description |
---|---|
basics/ |
Basic Java programs (input/output, math, etc.) |
loops-patterns/ |
Loops, patterns, and number-based logic |
arrays/ |
Array manipulation programs |
strings/ |
String operations and manipulations |
oops/ |
Object-oriented programming concepts |
exception-fileio/ |
Exception handling and file operations |
collections/ |
Java Collections Framework programs |
algorithms/ |
Searching, sorting, matrix, and other logic |
advanced/ |
Threads, GUI, lambda, and more |
project/ |
A mini console-based project |
Click here to view all 100 Java Programs »
- Java JDK 8 or higher
- A Java IDE (IntelliJ, Eclipse, or VS Code)
- Basic knowledge of Java syntax
- Navigate to the folder:
cd basics
- Compile the Java file:
javac HelloWorld.java
- Run the compiled class:
java HelloWorld
If you like this repository:
⭐ Star this repository
🧑💻 Follow me on GitHub
🔁 Share it with your friends