码迷,mamicode.com
首页 > 编程语言 > 详细

java@ What are C++ features missing in Java

时间:2016-03-16 07:13:57      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:

Following features of C++ are not there in Java.

No pointers
No sizeof operator
No scope resolution operator
Local variables in functions cannot be static
No Multiple Inheritance
No Operator Overloading
No preprocessor and macros
No user suggested inline functions
No goto
No default arguments
No unsigned int in Java
No -> operator in java
No stack allocated objects in java
No delete operator in java due to java’s garbage collection
No destructor in java
No typedef in java
No global variables, no global function because java is pure OO.
No friend functions
No friend classes
No templates in java

java@ What are C++ features missing in Java

标签:

原文地址:http://www.cnblogs.com/fu11211129/p/5281982.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!