Java or C++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Java or C++

Hi everybody, i was trying to learn Java but i always find it difficult and i stop learning for a long time, so i decided to stop with java and start to learn C++. so i would like to ask you if i really should stop with java and go to C++ or i must be patient and try again and again with java? if i should follow C++, Thanks!

18th Sep 2018, 8:29 PM
Khaled Wins
Khaled Wins - avatar
17 Answers
+ 7
i admit that man! c++ isnt that low level you are scared of. loq; i said simply , C++ because once i started learning java i was completely disapointed , the concept of (oop) would be difficult for new learners. once to be familiar with (pop) other parts would be easy to conceptualize, when you start with java there is class while in c++ when you are good with structure then you can go ahead , learning about memory management etc will take time but wount be hard !
18th Sep 2018, 9:41 PM
Michael
Michael - avatar
+ 6
Java 🙌
18th Sep 2018, 10:29 PM
NimWing Yuan
NimWing Yuan - avatar
+ 4
Michael C++ easier compared to Java? lol. Java isn't low level programming language as C++, C++ came from C and anybody who "borned" into to high level programming languages ( Java, C#, Python etc.. ) will have a hard time understanding C++ because you need to know more about the CPU than any other Language, I'm talking about memory management ( Pointers, References, Accessing memories that doesn't exist ), and all the higher terms like values ( Xvalue, Rvalue, etc... )... Only C++ developers will understand that frustration when they see the "Segmentation fault core dumped" error.
18th Sep 2018, 9:27 PM
Cain Eviatar
Cain Eviatar - avatar
+ 3
Try to learn Assembler language and you will find both of this languages easy-peasy-lemon-squeezy! (I'm joking, but it's really important not only to write code, but understand, how does it work in computer)
19th Sep 2018, 5:58 PM
DanielN
DanielN - avatar
+ 2
if you go for C++ ,you will find that easy compared to java !
18th Sep 2018, 8:42 PM
Michael
Michael - avatar
+ 2
C++ uses the only compiler whereas, in Java, compiler and interpreter both are used. C++ supports operator overloading and multiple inheritances but Java does not. C++ is more related to hardware in contrast to Java. C++ does not provide built-in support for internet whereas Java has built-in support for the same. However, C++ supports socket programming that can be used to achieve the same. C++ uses the concept of header files to include different libraries in the program. Java uses import functionality to include different classes and its methods in the program.
20th Sep 2018, 10:23 AM
meenal deshpande
+ 2
java
20th Sep 2018, 4:55 PM
Aarav Raj
Aarav Raj - avatar
+ 2
first of all learn for the c++and the next consept u will learn java 😎
23rd Sep 2018, 2:57 PM
Meera
Meera - avatar
+ 2
java🙌
23rd Sep 2018, 2:59 PM
Meera
Meera - avatar
+ 1
You should learn both of them, your goal should never be to just learn one language. It should always be to expand your knowledge of Computer Science.
19th Sep 2018, 12:40 PM
Vivan Shah
Vivan Shah - avatar
+ 1
Java
19th Sep 2018, 5:42 PM
Erion Gogu
Erion Gogu - avatar
0
He can always use flags for outputting the assembly code that readable for humans. ( I'm talking about C and C++, java using JVM so AFAIK you can't get the assembly output because it's translating into Byte code. ) He don't need to write in Assembly, he need to read Assembly, both are very different. When he will be able to read Assembly ( if he consider to learn it ) he will be able to make HUGE optimizations when he working on huge projects with C/C++.
19th Sep 2018, 6:02 PM
Cain Eviatar
Cain Eviatar - avatar
0
Anyway, He could learn C++ untill he get Classes with inheritance / friendships etc... And then learn Java and he will have an understanding of what a class is, and keywords like static, and obv data types int, double etc.. Or "jump with your head into water" and learn everything better, by learning C++ from "Toe to Head", like every person should.
19th Sep 2018, 6:06 PM
Cain Eviatar
Cain Eviatar - avatar
0
java is the best programming language on the planet and also it has lots of opportunity
20th Sep 2018, 5:59 AM
Otabek Olimjonov
0
i think you should do c++ first after that go for java.after c++,you easily understand the concept of java 😎
22nd Sep 2018, 2:45 PM
Yogesh
Yogesh - avatar
0
И то и другое
10th Apr 2019, 8:29 AM
Юрий Сушков
Юрий Сушков - avatar
- 1
Otabek Olimjonov there is "no" best programming language, every language has it's purposes, pros and cons. C++ is known for Game Engines, OS's... ( basically for every software that need high performance ). Java is more used for Simple games, or simple GUI applications.
20th Sep 2018, 4:59 PM
Cain Eviatar
Cain Eviatar - avatar