Download citation...
Question
Asked 22 May 2014

Is recursive implementation faster in Java than in C++ ?

Is recursive implementation faster in Java than in C++ ? For instance; in the implementation recursive functions for Fibonacci sequences or that of Towers of Hanoi, which of the programming languages will run faster and under the shortest possible time? Java or C++ ?
Adriel M. Ziesemer Jr.
Rio Grande do Sul Federal Institute of Education, Science and Technology
Use -O3 and everything will always be faster in C++, at least for an experienced programmer.
Use these cheats to optimize your code as you go:
But don't try to optimize everything or your productivity, your code legibility, and you mental heath will suffer.
1 Recommendation