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.
I like that C++ gives me so much control, and the ability to do neat tricks with memory to eek out performance improvements.
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.
Knowing very little about Java, I am unsure as to whether this is a path I want to go down.
I realise this is very subjective, but I'm hoping someone who has walked this path before can offer some insight.
C is a procedural, low level, and compiled language. Java is an object-oriented, high level, and interpreted language. Java uses objects, while C uses functions. Java is easier to learn and use because it's high level, while C can do more and perform faster because it's closer to machine code.
Difference between C and C++C++ was developed as an extension of C, and both languages have almost the same syntax. The main difference between C and C++ is that C++ support classes and objects, while C does not.
C is more procedure-oriented. Java is more data-oriented. C is a middle-level language because binding of the gaps takes place between machine level language and high-level languages. Java is a high-level language because translation of code takes place into machine language using compiler or interpreter.
It is a platform dependent intermediate machine code which will be converted to exe and then executed. Java native interface (JNI) is a framework provided by java that enables java programs to call native code and vice-versa. Using JNI a java program has the capability to call the native C code.
Look at these threads -
What is the difference between Java and C++?
http://www.javacoffeebreak.com/articles/thinkinginjava/comparingc++andjava.html
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://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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With