Which one you choose for object oriented coding C++ or Java if you have only one option left to go on and why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Which one you choose for object oriented coding C++ or Java if you have only one option left to go on and why?

java or c++

21st Feb 2018, 11:34 AM
Akash
Akash - avatar
7 Answers
+ 2
but c++ provide you the facilities of reference by address . can it be overcame in java?
21st Feb 2018, 12:06 PM
Akash
Akash - avatar
+ 4
C++ If I were restricted to Java and I wanted to make something that is time-critical, it would become very hard to make it fast enough. Pointers are very useful and important for a lot of programs, it would be a big problem to not be able to use them. Finally, I am more used to C++ syntax. I find the way classes are organized is much easier to read.
21st Feb 2018, 12:32 PM
Jacob Pembleton
Jacob Pembleton - avatar
+ 3
facilities to access address is not possible in java. That's why it is used highly for banking purposes.
21st Feb 2018, 12:21 PM
Akash
Akash - avatar
+ 2
@Akash best reason is code re-useability. java is platform independent write once and deploy anywhere
21st Feb 2018, 12:40 PM
Muhammad Zubair Khalid
Muhammad Zubair Khalid - avatar
+ 1
always choose Java...totally OOP you can't even print signle line without classes and objects syntax is pretty straight forward and beautiful C++ is just cumbersome to code in...
21st Feb 2018, 11:50 AM
Muhammad Zubair Khalid
Muhammad Zubair Khalid - avatar
+ 1
Obviously am also interested towards C++ but trying to get the best reasons to choose Java
21st Feb 2018, 12:34 PM
Akash
Akash - avatar
0
@Akash anything done in C++ is beautifully done in java
21st Feb 2018, 12:18 PM
Muhammad Zubair Khalid
Muhammad Zubair Khalid - avatar