The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:When an object is being constructed, it's still in the hands of the JVM's object factory and so the regular application threads can't access it.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:OK. You've confused me. Why should line 11 ever be executed before line 4?
Regardless of what order things do internally, their execution order as statements is not allowed to be altered.
Furthermore, there are limits even within statements. Otherwise the "short circuit" operators couldn't work reliably.
Stephan van Hulst wrote:
Consider the following code: