Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fdeniz07/effectivejava
The examples in this repo are based on Joshua J. Bloch's book Effective Java (Third Edition)
https://github.com/fdeniz07/effectivejava
Last synced: 8 days ago
JSON representation
The examples in this repo are based on Joshua J. Bloch's book Effective Java (Third Edition)
- Host: GitHub
- URL: https://github.com/fdeniz07/effectivejava
- Owner: fdeniz07
- Created: 2023-11-23T02:34:13.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-03-20T20:44:07.000Z (8 months ago)
- Last Synced: 2024-04-16T19:18:30.606Z (7 months ago)
- Language: Java
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Effective Java
## The examples in this repo are based on Joshua J. Bloch's book Effective Java (Third Edition).
### Resource : https://kea.nu/files/textbooks/new/Effective%20Java%20%282017%2C%20Addison-Wesley%29.pdf#### Note: In the book, examples start from chapter 2, in the repo they start from chapter 1.
## Chapter 0: Introduction
## Chapter 1: Creating and Destroying Objects
### item1 : Consider static factory methods instead of constructors
### item2 : Consider a builder when faced with many constructor parameters
### item3 : Enforce the singleton property with a private constructor or an enum type
### item4 : Enforce noninstantiability with a private constructor
### item5 : Prefer dependency injection to hardwring resources
### item6 : Avoid creating unnecessary objects
### item7 : Eliminate obsolete object references
### item8 : Avoid finalizers and cleaners
### item9 : Prefer try-with-resources to try-finally
## Chapter 2: Methods Common to All Objects
### item10: Obey the general contract when overriding equals
### item11: Always override hashCode when you override equals
### item12: Always override toString
### item13: Override clone judiciously
### item14: Consider implementing Comparable
### item14-b: Comparable
## Chapter 3: Classes and Interfaces
## Chapter 4: Generics
## Chapter 5: Enums and Annotations
## Chapter 6: Lambdas and Streams
## Chapter 7: Methods
## Chapter 8: General Programming
## Chapter 9: Exceptions
## Chapter 10: Concurrency
## Chapter 11: Serialization