Optimizations in Java are performed (as far as I know) by the HotSpot compiler at runtime (bytecode is optimized when switching to machine code), Thus, the answer is yes and no.
, JVM, . , JVM , , ( ). SHA1 Windows JVM Linux. , ( , Linux) 40% ...
, , HotSpot JVM, JVM...