Questions tagged «bytecode»

10
ජාවා හි 2 * (i * i) 2 * i * i ට වඩා වේගවත් වන්නේ ඇයි?
පහත දැක්වෙන ජාවා වැඩසටහන ක්‍රියාත්මක වීමට තත්පර 0.50 ත් තත්පර 0.55 ත් අතර කාලයක් ගතවේ: public static void main(String[] args) { long startTime = System.nanoTime(); int n = 0; for (int i = 0; i < 1000000000; i++) { n += 2 * (i * i); } System.out.println((double) (System.nanoTime() - …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.