Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
If i can learn Java will C++ be easier to learn?
im trying to learn Java because i want to get into game programming and i just started and im getting the hang of it but i wanted to know if knowing Java would make C++ easier since i went directly to C++ and didnt know what i was doing at all.
2 Answers
- Link HLv 69 years agoFavorite Answer
I learned a lot of C/C++ but decided that Java would be better. Now a few years have passed and I am still learning Java, and I still think it is better, for the reason that it is harder to accidentally write a time-bomb in Java. The Java compiler makes the programmer work harder to "prove" to the compiler that the code is not likely to fail due to improper use.
The Java compiler makes it difficult to add apples and oranges, unless you had the foresight to define both of them as a fruit. Java also standardized the disposition of run-time errors. There is a lot less need for complicated error codes returned from functions, when in Java you can simply throw an exception.
When I would try to do this in C, (for example by coding an assertion), management would cry foul, and insist that a way to "handle" the problem had to be coded. This was often demonstrably impossible, but a lot of electronic paper would fly before the pointy-haired bosses were convinced that nothing could be done without recoding the entire mess from one end to the other, top to bottom and back again.
- daddeaLv 44 years ago
Java is far less complicated to earnings. Or somewhat, positioned it this way: C++ is far less complicated to earnings, yet Java is far less complicated to apply. See, loads of the time you want the habit that the 'bunch of extra desirable words' in Java supply, and in C++ you should rebuild all that from scratch. discovering the concepts of C++ may be much less complicated, yet development something clever out of them is rather harder.