Welcome to the Java Learning Repository! This repository is dedicated to learning and mastering Java programming from basics to advanced concepts. π
- Getting Started
- Core Concepts
- Data Structures & Algorithms
- Object-Oriented Programming (OOP)
- Advanced Topics
- Learning Resources
- Projects
- Contributing
- Java Development Kit (JDK) 8 or higher
- IDE: IntelliJ IDEA, Eclipse, or VS Code
- Basic programming knowledge (optional)
-
Install Java JDK:
- Download JDK
- Verify installation:
java -version
-
Clone this repository:
git clone https://github.com/Jaideep193/Java.git cd Java -
Set up your IDE and start learning!
- Variables & Data Types: Primitives, Wrappers, Type Casting
- Operators: Arithmetic, Logical, Bitwise, Comparison
- Control Flow: if-else, switch, loops (for, while, do-while)
- Methods: Declaration, Parameters, Return Types, Overloading
- String creation and manipulation
- StringBuffer vs StringBuilder
- Regular Expressions
- String Methods and Operations
- Try-catch-finally blocks
- Custom exceptions
- Throws keyword
- Exception hierarchy
- Lists: ArrayList, LinkedList, Vector
- Sets: HashSet, TreeSet, LinkedHashSet
- Maps: HashMap, TreeMap, ConcurrentHashMap
- Queues: PriorityQueue, Deque
- Arrays & Multi-dimensional Arrays
- Linked Lists
- Stacks
- Queues
- Trees (Binary, BST, AVL)
- Graphs
- Hash Tables
- Bubble Sort
- Selection Sort
- Insertion Sort
- Merge Sort
- Quick Sort
- Heap Sort
- Counting Sort
- Linear Search
- Binary Search
- Hash-based Search
- Memoization
- Tabulation
- Classic Problems (Fibonacci, 0/1 Knapsack, Longest Subsequence)
- Encapsulation: Data hiding and access control (private, public, protected)
- Inheritance: Single inheritance, super keyword, method overriding
- Polymorphism: Method overloading, method overriding, dynamic dispatch
- Abstraction: Abstract classes, interfaces, abstract methods
- Interfaces: Multiple inheritance of type, default methods, functional interfaces
- Abstract Classes: vs Interfaces, when to use
- Inner Classes: Nested, inner, anonymous, static inner
- Enums: Creating and using enums, enums with constructors
- Generics: Type parameters, wildcards, bounded types, type erasure
- Thread creation (extends Thread, implements Runnable)
- Synchronization and locks
- Thread pools and ExecutorService
- Volatile and atomic operations
- Deadlocks and race conditions
- Byte streams (InputStream, OutputStream)
- Character streams (Reader, Writer)
- Serialization (ObjectInputStream, ObjectOutputStream)
- NIO (Channels, Buffers)
- JDBC (Java Database Connectivity)
- Connection pooling
- Prepared statements
- Transaction management
- Filter, Map, Reduce operations
- Functional programming
- Terminal and intermediate operations
- Performance considerations
- Lambda expressions
- Functional interfaces
- Method references
- Stream API integration
- Creational: Singleton, Builder, Factory, Prototype
- Structural: Adapter, Decorator, Facade, Proxy
- Behavioral: Observer, Strategy, Command, State
- Codecademy - Java Course
- Udemy - Java Programming
- Coursera - Java Programming
- edX - Java Fundamentals
- Pluralsight - Java Courses
- Head First Java by Kathy Sierra & Bert Bates
- Effective Java by Joshua Bloch
- Java Concurrency in Practice by Brian Goetz
- Clean Code by Robert C. Martin
- Design Patterns by Gang of Four
This repository contains example projects and exercises organized by difficulty:
- Calculator Application
- Temperature Converter
- Student Grade Management System
- Banking System (Basic)
- Library Management System
- E-commerce Application
- Chat Application (TCP/IP)
- To-Do List Application
- Spring Boot REST API
- Real-time Notification System
- Microservices Architecture
- Machine Learning Integration (Deeplearning4j)
The repository now includes a complete console-based Java e-commerce application at:
src/com/jaideep/ecommerce
- User registration/login, authentication, and profile updates
- Product listing/search/filter and category support
- Shopping cart add/remove/update with total calculation
- Order placement, order history, status updates, and invoice generation
- Payment method selection and transaction history
- Admin product/inventory/order/report management
- File persistence using serialization (
data/ecommerce.ser) - MVC-style package structure with service and persistence layers
javac -d out $(find src -name "*.java")
java -cp out com.jaideep.ecommerce.MainSample seeded users:
demo / demo123(customer)admin / ChangeMe#2026(admin, override withECOM_ADMIN_PASSWORD)
- Variables, Data Types, Operators
- Control Flow (if-else, loops)
- Methods and Function Overloading
- Arrays
- Classes and Objects
- Encapsulation, Inheritance, Polymorphism
- Abstract Classes and Interfaces
- Constructors and Access Modifiers
- ArrayList, HashMap, HashSet
- Generics and Type Parameters
- Iterators and Collections Framework
- Try-catch-finally
- Custom Exceptions
- Stream API and Functional Programming
- Multithreading and Concurrency
- File I/O and Serialization
- Design Patterns
- Build a complete project
- Integrate multiple concepts
- Code optimization and testing
β Practice Coding: Write code every day β Understand Concepts: Don't just memorize, understand the "why" β Build Projects: Apply learning to real-world scenarios β Read Code: Study well-written code on GitHub β Join Communities: Engage with other learners β Debug Actively: Use debugger to understand execution flow β Refactor Code: Improve code quality gradually β Take Notes: Document important concepts
Java/
βββ basics/
β βββ HelloWorld.java
β βββ Variables.java
β βββ Operators.java
β βββ ControlFlow.java
βββ oop/
β βββ Classes.java
β βββ Inheritance.java
β βββ Polymorphism.java
β βββ Interfaces.java
βββ collections/
β βββ Lists.java
β βββ Maps.java
β βββ Sets.java
βββ dsa/
β βββ Sorting.java
β βββ Searching.java
β βββ Trees.java
βββ projects/
β βββ Calculator/
β βββ BankingSystem/
β βββ LibraryManagement/
βββ README.md
Contributions are welcome! If you find any issues or have improvements:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is open source and available under the MIT License.
- Thanks to the Java community for excellent resources
- Inspired by learning paths from top tech companies
- Special thanks to all contributors
- GitHub: Jaideep193
- Email: For inquiries and feedback
Happy Learning! Keep coding and building amazing things with Java! π―
Last Updated: June 2026
The e-commerce module under src/com/jaideep/ecommerce follows a layered MVC architecture:
βββββββββββββββββββββββββββββββββββββββββββββββ
β ConsoleUI (ui/) β β User interaction / menus
βββββββββββββββββββββββββββββββββββββββββββββββ€
β AppController (controller/) β β Orchestrates calls between layers
βββββββββββββββββββββββββββββββββββββββββββββββ€
β AuthService β ProductService β CartService β
β OrderService β PaymentService β AdminServiceβ β Business logic (services/)
βββββββββββββββββββββββββββββββββββββββββββββββ€
β AppContext β AppData (services/) β β In-memory state
βββββββββββββββββββββββββββββββββββββββββββββββ€
β FileDatabaseLayer (persistence/) β β File-based serialisation
βββββββββββββββββββββββββββββββββββββββββββββββ
Package overview
| Package | Responsibility |
|---|---|
models |
Plain data objects (User, Product, Order, CartItem, β¦) |
services |
Stateless business-logic services wired through AppContext |
controller |
AppController β thin facade called by the UI |
ui |
ConsoleUI β all Scanner-based I/O in one place |
persistence |
DatabaseLayer interface + FileDatabaseLayer implementation |
exceptions |
Single EcommerceException (unchecked) for domain errors |
utils |
PasswordUtil (PBKDF2), IdGenerator, SampleDataInitializer |
Environment variables
| Variable | Default | Purpose |
|---|---|---|
ECOM_ADMIN_PASSWORD |
ChangeMe#2026 |
Seeded admin password |
ECOM_DATA_PATH |
data/ecommerce.ser |
Path for the serialised data file |
Tip: Add
data/to.gitignoreso the binary data file is never committed to version control.