Like I said, Java tends to slightly slower, if not just as fast as code written in C++ or C, but you have to remember that Java is interpreted dynamically, rather than compiled and run as native code, as C++ / C is.
Java can be as fast as it wants, but it will always have the overhead of the JVM.
Java can be as fast as it wants, but it will always have the overhead of the JVM.