Does anyone know if the java compiler 1.4.2
from SUN optimizes subexpressions? I.e.
in the following two lines
int tcount = Thread.currentT hread().getThre adGroup().enume rate(myThreadLi st);
String tcurrent = Thread.currentT hread().getName ();
will it evaluate Thread.currentT hread();
only once?
just curious
from SUN optimizes subexpressions? I.e.
in the following two lines
int tcount = Thread.currentT hread().getThre adGroup().enume rate(myThreadLi st);
String tcurrent = Thread.currentT hread().getName ();
will it evaluate Thread.currentT hread();
only once?
just curious
Comment