2) class java program has loaded byte from the network, and then executed, which is the cause of slow running java.
3) the program is running, the detection array java virtual machine is out of bounds, is not detected in C ++ .
In a blog post that provides links: https://blog.csdn.net/ive_lanco/article/details/81094484
4) in the Java all objects are created on the heap, no object is created in the stack, whereas some C ++ objects and variables are created in the stack of
In this blog post provides links: https://blog.csdn.net/rickiyeat/article/details/76802085
This blog, we can appreciate nature to watch, but if we are deep enough qualifications, then we can explain some
Welcome to leave a message at the bottom of my blog post.
5) java during operation detected object reference is null, null pointer exception will be thrown if all references to a null pointer, and the execution of a method
6) java runtime type checking, if the incorrect type of throw a ClassCastException.
garbage collection. 7) java lower than the C ++ programmer memory management efficiency.
8) in the java primitive data types are the same in each of the length of the operating system platform, the C ++ data types length is OS vary, so when there java execute on different operating systems a conversion process.
9) in java String is the UNICODE. when java to operate an ASCII string, is relatively lower than the C ++ efficiency number.
10) in java It uses a dynamic link
11) mechanisms jvm itself, such as garbage collection , find and load classes, etc. There is also time consuming.
However, everything has two sides, java likely than c, c ++ slow, but the platform for us to shield a lot of machine and operating system differences, we write java code base without much consideration of machine and operating system thing itself. And has good portability . For example, you write the code in Windows java, basically only need minor modifications to run under the Linux.