https://github.com/varunu28/effective-java-notes
💪 Notes about the book "Effective Java"
https://github.com/varunu28/effective-java-notes
Last synced: 4 months ago
JSON representation
💪 Notes about the book "Effective Java"
- Host: GitHub
- URL: https://github.com/varunu28/effective-java-notes
- Owner: varunu28
- Created: 2022-10-03T14:49:54.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-14T16:24:04.000Z (over 2 years ago)
- Last Synced: 2025-02-21T17:48:15.259Z (8 months ago)
- Homepage:
- Size: 28.3 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Effective-Java-Notes
Notes about the book "Effective Java"
## Creating and Destroying Objects
- [Item 1: Consider static factory methods instead of constructors](https://github.com/varunu28/Effective-Java-Notes/blob/main/notes/Creating%20and%20Destroying%20Objects/Item%201.md)
- [Item 2: Consider a builder when faced with many constructor parameters](https://github.com/varunu28/Effective-Java-Notes/blob/main/notes/Creating%20and%20Destroying%20Objects/Item%202.md)
- [Item 3: Enforce the singleton property with a private constructor or enum type](https://github.com/varunu28/Effective-Java-Notes/blob/main/notes/Creating%20and%20Destroying%20Objects/Item%203.md)
- [Item 4: Enforce noninstantiability with a private constructor](https://github.com/varunu28/Effective-Java-Notes/blob/main/notes/Creating%20and%20Destroying%20Objects/Item%204.md)
- [Item 5: Prefer dependency injection to hardwiring resources](https://github.com/varunu28/Effective-Java-Notes/blob/main/notes/Creating%20and%20Destroying%20Objects/Item%205.md)
- [Item 6: Avoid creating unnecessary objects](https://github.com/varunu28/Effective-Java-Notes/blob/main/notes/Creating%20and%20Destroying%20Objects/Item%206.md)
- [Item 7: Eliminate obsolete object references](https://github.com/varunu28/Effective-Java-Notes/blob/main/notes/Creating%20and%20Destroying%20Objects/Item%207.md)
- [Item 8: Avoid finalizers and cleaners](https://github.com/varunu28/Effective-Java-Notes/blob/main/notes/Creating%20and%20Destroying%20Objects/Item%208.md)
- [Item 9: Prefer try-with-resources to try-finally](https://github.com/varunu28/Effective-Java-Notes/blob/main/notes/Creating%20and%20Destroying%20Objects/Item%209.md)
## Methods Common to All Objects
- [Item 10: Obey the general contract when overriding equals]( https://github.com/varunu28/Effective-Java-Notes/blob/main/notes/Methods%20Common%20to%20All%20Objects/Item%2010.md)
- [Item 11: Always override hashCode when you override equals]( https://github.com/varunu28/Effective-Java-Notes/blob/main/notes/Methods%20Common%20to%20All%20Objects/Item%2011.md)
- [Item 12: Always override toString]( https://github.com/varunu28/Effective-Java-Notes/blob/main/notes/Methods%20Common%20to%20All%20Objects/Item%2012.md)
## Concurrency
- [Item 78: Synchronize access to shared mutable data](https://github.com/varunu28/Effective-Java-Notes/blob/main/notes/Concurrency/Item%2078.md)