从 C++ 到 Java 的转换
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12189761/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
The switch from C++ to Java
提问by steve
I am a C++ developer through and through. I am passionate about the language, and in particular really enjoy the power that template meta-programming and compile-time polymorphism gives me, and the more recent developments such as C++11's variadic templates and rvalue references etc.
我是一名彻头彻尾的 C++ 开发人员。我对这门语言充满热情,特别喜欢模板元编程和编译时多态性给我带来的力量,以及最近的发展,如 C++11 的可变参数模板和右值引用等。
I like that C++ gives me so much control, and the ability to do neat tricks with memory to eek out performance improvements.
我喜欢 C++ 给了我如此多的控制权,以及用内存做一些巧妙的技巧来寻求性能改进的能力。
I have recently been offered the opportunity to interview with a company which does all its dev in Java. They claim they are passionate about technology first and foremost, and that they are struggling to find really good technologists. As such are looking to take on hardcore C++ technologists and have them do the swap over to Java.
我最近有机会采访一家使用 Java 进行所有开发的公司。他们声称自己首先对技术充满热情,并且正在努力寻找真正优秀的技术人员。因此,他们希望聘请铁杆 C++ 技术专家,并让他们转而使用 Java。
Knowing very little about Java, I am unsure as to whether this is a path I want to go down.
对 Java 知之甚少,我不确定这是否是我想要走的路。
- Are the low-level nuts and bolts available to us in C++ taken away in Java?
- Will a passionate C++ developer enjoy Java or long to go back to C++?
- 我们在 C++ 中可用的低级螺母和螺栓是否在 Java 中被带走了?
- 热情的 C++ 开发人员会喜欢 Java 还是渴望回到 C++?
I realise this is very subjective, but I'm hoping someone who has walked this path before can offer some insight.
我意识到这是非常主观的,但我希望以前走过这条路的人可以提供一些见解。
回答by AnujKu
Look at these threads -
看看这些线程——
What is the difference between Java and C++?
http://www.javacoffeebreak.com/articles/thinkinginjava/comparingc++andjava.html
http://www.javacoffeebreak.com/articles/thinkinginjava/comparingc++andjava.html
http://www.programmersheaven.com/2/FAQ-JAVA-Differences-Between-JAVA-And-C-CPP
http://www.programmersheaven.com/2/FAQ-JAVA-Differences-Between-JAVA-And-C-CPP
http://en.wikipedia.org/wiki/Comparison_of_Java_and_C%2B%2B
http://en.wikipedia.org/wiki/Comparison_of_Java_and_C%2B%2B
http://www.csun.edu/~hbcsc240/C++vsJava_St.htm
http://www.csun.edu/~hbcsc240/C++vsJava_St.htm
What is the main difference in object creation between Java and C++?
If anyone has better threads they should edit my answer.
如果有人有更好的线程,他们应该编辑我的答案。