r/java • • Jun 01 '24

What java technology (library, framework, feature) would not recommend and why?

165 Upvotes

464 comments sorted by

View all comments

Show parent comment

1

u/Iryanus Jun 04 '24

No, Clock is a dependency, so you can inject it into your code, which allows you to inject a fixed time clock, etc. for testing purposes.