Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The switch from C++ to Java [closed]

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.

  • 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++?

I realise this is very subjective, but I'm hoping someone who has walked this path before can offer some insight.

like image 938
steve Avatar asked Aug 30 '12 04:08

steve


People also ask

Is C close to Java?

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.

Is C++ close to C?

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.

Is there any relation between C and Java?

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.

Can I use C with Java?

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.


1 Answers

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.

like image 71
AnujKu Avatar answered Oct 10 '22 12:10

AnujKu