Java vs C Performance..
You might have discussed this topic many times and wondered which is better.
Is C/C++ faster than Java ? Well, it depends…

Java:
1) Platform independent
2) Garbage collection feature from JVM frees users from worrying about memory management.
3) Multi-threading /concurrency libraries

C/C++ :

* C++ has smaller footprint.

*Very small startup time

*Direct machine access,

# On the fly code generation & execute. Its easy to execute same machine instructions on a simple RISC chip whereas Java needs JIT to do a good job with bytecodes.

# OS’s. These need lots of direct machine access (e.g. hardware interrupt support; page table support)

# Direct code generation with exact machine instructions will be generated from the C compiler.  This is harder to do in Java because the translation layer is much more indirect.