Which language run 'for' loop fastest? Java, python, c, c++, javascript or any other?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Which language run 'for' loop fastest? Java, python, c, c++, javascript or any other??

26th Jul 2019, 8:59 PM
Jenis Gadhiya
Jenis Gadhiya - avatar
2 Answers
+ 3
This might help you 👇 https://stackoverflow.com/questions/3191065/fastest-language-for-for-loops Fastest language for FOR loops - Stack Overflow
26th Jul 2019, 10:50 PM
KingDaniel2004
KingDaniel2004 - avatar
+ 1
C,C++ and Java would run faster than the others because they are strongly typed(define the exact datatype of variables) where as python and javascript are weakly typed(dynamic/no need to define the exact datatype of variables). C++ is known for its speed and memory management, C++ comes with libraries with low-level capabilities. java is much faster than python in terms of speed. C, C++ are intermediate-level programming languages while python and javascript are high level programming languages. Intermediate-level are closer to low level languages like assembly and machine code which means the time taken to read and run them by the processor is reduced because they are strongly typed. There are also plenty more other reasons why they run faster.
26th Jul 2019, 10:31 PM
SAMSON KIBROM OKBAY
SAMSON KIBROM OKBAY - avatar