forked fromnipafx/effective-java
- Notifications
You must be signed in to change notification settings - Fork0
Exploration of Effective Java, third edition
License
NotificationsYou must be signed in to change notification settings
java-code-help/effective-java
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This project contains examples, tests, and benchmarks for myYouTube series onEffective Java, Third Edition.The tests can be run withmvn test or any IDE with JUnit 5 integration.To run the benchmarks:
mvn packagejava -jar target/benchmarks.jarRelated links:
- affiliate links toEffective Java, Third Edition:
- InformIT (the publisher)
- Amazon USA
- Amazon Germany
- visitcodefx.org for links to my blog, Twitter, Twitch, and online courses on Java
- Item 1:Consider static factory methods instead of constructors -examples
- Item 2:Consider a builder when faced with many constructor parameters -examples
- Items 3-5 -examples:
- Enforce the singleton property with a private constructor or an enum type
- Enforce noninstantiability with a private constructor
- Prefer dependency injection to hardwiring resources
- Item 6:Avoid creating unnecessary objects -benchmark
About
Exploration of Effective Java, third edition
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Languages
- Java99.3%
- Kotlin0.7%