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! π