This project serves as a structured learning resource for core Java concepts. Each package represents a different Java topic, and within each package, there is a class with a main method that can be uncommented and executed to see the concept in action.
- Explore Packages – Each package covers a different core Java topic.
- Uncomment & Run – Uncomment the
mainmethod in any class and execute it. - Read Comments – Each class includes detailed explanations to reinforce learning.
- Expand the Project – Add new Java concepts over time to deepen understanding.
- Comparable – Interface for defining the natural ordering of objects.
- Comparator – Interface for custom sorting logic.
- Example: Sorting objects using both
ComparableandComparator.
- Understanding threads, Runnable, and synchronization.
- Implementing threads using:
- ✅ Extending
Threadclass - ✅ Implementing
Runnableinterface
- ✅ Extending
- Example: Printing Even & Odd Numbers Using Two Threads
- Two threads communicate using
wait()andnotify()to print numbers sequentially.
- Two threads communicate using
⚡ More concepts will be added as the project evolves! Stay tuned! 🚀