Java program requires more memory resources and is slow when compared with most of the natively compiled modern day programming languages such as C or C++. This is becuase the Java Library must be loaded in to memory before program execution takes place. In addition to that, both the Java binary and native recompilations must be in the memeory at the same time. Further, Java Virtual Machine (JVM) also requires memory recources for it self. These all add and Java memory usage is high when comapred to C, C++ etc.
(more…)