Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Exploration of Effective Java, third edition

License

NotificationsYou must be signed in to change notification settings

java-code-help/effective-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

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.jar

Related links:

Creating and destroying objects

  • 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

Methods

About

Exploration of Effective Java, third edition

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java99.3%
  • Kotlin0.7%

[8]ページ先頭

©2009-2025 Movatter.jp