This repository contains code examples and notes from my journey studying "Effective Java (3rd Edition)" by Joshua Bloch. As a passionate Java developer, I've always been deeply impressed by how this book presents practical, real-world programming wisdom in such a clear and compelling way. The project serves as both a practical learning resource for Java best practices and design patterns, and my personal documentation of insights gained while exploring each chapter.
Through this repository, I aim to deepen my understanding of Java's nuances and best practices by implementing and experimenting with the concepts presented in the book. Each example and note reflects not just the book's teachings, but also my own discoveries and interpretations along the way. I hope this learning journey will help me become a more effective Java programmer while possibly helping others who are on the same path of mastering Java.
"Effective Java (3rd Edition)" is a comprehensive guide that provides 90 best practices for the Java platform. Each item in the book presents coding patterns and practices that help developers write clear, robust, and efficient code.
The repository is organized by chapters and items from the book:
- Code examples demonstrating the concepts
- Notes and key takeaways
- Practice exercises
- Creating and Destroying Objects
- Methods Common to All Objects
- Classes and Interfaces
- Generics
- Enums and Annotations
- Lambdas and Streams
- Methods
- General Programming
- Exceptions
- Concurrency
- Serialization
- Clone the repository:
git clone https://github.com/DennisLiuCk/effective-java.git
- Navigate to specific chapters to find examples and notes
- Each item from the book has its own directory with relevant examples
- Jdk8+ is recommended to run the code for compatibility reasons(because that's the version I'm using when writing/refactoring the demo code)
Feel free to:
- Submit issues for questions or discussions
- Create pull requests to improve examples
- Share your own learning experiences
This project is for educational purposes. All code examples are inspired by "Effective Java (3rd Edition)" but written as original implementations for learning.
Happy Learning! 🚀