すぐ忘れるJavaのはなし
#Java #シュッと出したい
Integerは -128~127 の範囲でキャッシュされてる話
https://backpaper0.github.io/2016/05/08/boxsing_and_cache.html
JavaでBigDecimal使うときに気をつけること
Javaの浮動小数点数について
Javaの四則演算時の型変換のルール
stream
Javaのstreamでシュッとソートする
AtomicLongよりLongAdder使ったほうが良いみたいなはなしの理解
thowableはキャッチしちゃだめだよというはなし
https://www.baeldung.com/java-catch-throwable-bad-practice
As per the Java documentation, the Exception class “indicates conditions that a reasonable application might want to catch“.
According to the Java documentation, the Error class “indicates serious problems that a reasonable application should not try to catch“.
import java.io.* とかすると、実行パフォーマンスに影響があるの?( java.io.File とかにしないとだめ? )
ない。コンパイル時間には影響はあるかも。
https://stackoverflow.com/questions/7128348/performance-difference-between-a-wild-card-import-and-the-required-class-import
JavaのSecureRandomで乱数生成するとブロックされるの?について