+ 5

Java or C++ which language is better and why

Java vs C++

5th May 2019, 1:35 PM
Farrukh Shah
Farrukh Shah - avatar
9 ответов
+ 4
Like the others said, there isn't really a best programming language if you don't mention something you want to use it for. But here are my biggest differences: Java is (IMO) way more beginner friendly. For example I searched on the internet with which language I should start as a complete beginner in coding. Most of the time they said Java because it's a very strong but relatively easy programming language. C++ is harder to learn because there are a lot of possible error sources (e. G. Arrays in C++ don't have a strict index restriction like Java. So you could say the index is higher than the length of the array and then you overwrite or access the next thing in the stack. And that's very dangerous for the program.) and for beginners complicated structures, like pointers. Also, as most of the others already pointed out, Java works on many different OS, so for example for school, if you have a Mac at home where you program, you can just take your code, and run it in school on windows PC without problems.
6th May 2019, 8:36 PM
Niklas
Niklas - avatar
5th May 2019, 1:42 PM
Rstar
Rstar - avatar
+ 9
Java is somewhat more popular but better for what is the question.
6th May 2019, 3:05 AM
Sonic
Sonic - avatar
+ 5
I use both of the languages and I'm finding Java more elegant. The main reason is it's portability. After that, each one is powerful on their own working field!
5th May 2019, 9:34 PM
Clin John Xavier
Clin John Xavier - avatar
+ 3
In my opinion Java is better case two most important reasons , which are : 1.java is a faster in execution and 2.java isplatform independed
30th Jul 2019, 12:19 PM
Shahrzad Gh
Shahrzad Gh - avatar
+ 2
Where can u apply a c++program in career?
6th May 2019, 10:07 AM
Beatrice Ngari
Beatrice Ngari - avatar
+ 1
Thanks Niklas for ur answer
7th May 2019, 8:22 AM
Beatrice Ngari
Beatrice Ngari - avatar
+ 1
به نظر من هم اول باید فیلد کاریتون رو‌مشخص کنید. اگر دنبال درآمد بیشتر هستید به خاطر مقوله عرضه و تقاضا که جاوا کارها تعداد کمتری دارند قیمت بالاتری میگیرند. اگر فقط مسئله علاقه ست باید بگم یادگیری سی پلاس پلاس راحتتره اما در عین حال زمان بیشتری می‌بره تا یادش بگیرید.
30th Jul 2019, 6:48 PM
M.H. Zaheri
M.H. Zaheri - avatar