It's recommended to avoid any asynchrony within the scope of the test. Unfortunately, this is not possible everywhere.
Not everywhere could be immutable objects used to ensure thread-safe code.
A small program to generate JSON data.
Let's build a simple but powerful application package manager with Ant.
This article will show you how to implement an Ant task which consume a sequence of sub-task and call them with a parameter of the result from the execution.
In the case of generic beans sometimes you need to get the generic type value for some specific reasons. A typical example could be parsing some data into the type.
Sometimes you have a type of bean in the Spring framework which you want to create by every asking for it - in the scope prototype.
...is very bad practice. Nevertheless, it is not so rare to meet it.