开发者

Main Differences between c++ and Java [closed]

开发者 https://www.devze.com 2023-01-31 19:18 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot b开发者_如何转开发e reasonably answered in its current for
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot b开发者_如何转开发e reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

What are the most important differences between C++ and Java from a point of view of someone coming from Java to C++?


Too many to enumerate here but:

  1. Garbage collection
  2. Function pointers
  3. Enumerators
  4. The standard collection libraries (i.e. you're going to need to look up Boost for a hash table unless your compiler supports TR1)
  5. Write once, compile many times for each operating system.
  6. Multiple inheritance
  7. Templates versus Generics and type erasure

Hell, pointers in general. This question should be closed. There's just no way to fully answer it.


C++ is not completely object oriented where as java is. Also C++ compiles to machine language where as java compiles to byte code. you can find more here http://en.wikipedia.org/wiki/Comparison_of_Java_and_C%2B%2B

0

精彩评论

暂无评论...
验证码 换一张
取 消