Is String.formatted Faster Than '+'? #java #shorts

preview_player
Показать описание


#airhacks
Рекомендации по теме
Комментарии
Автор

Can you try where the String to be output is dynamic? Ie the string can't be known at compile time.. is it still the same?

pauldalyyt
Автор

Didn't know that number format 100_000 is accepted 👍

mahmoudelsonbati
Автор

better to test what happens when the values are not known at compile time. That's the obvious case in real world.

jagansai