why to learn C and C++ when we have JAVA
Posted 28 December 2013 - 07:07 AM
It's a good question.
C is usually the best first time language. It has a lot of basic functions that help you understand and build up your logic. This is a key reason why C is taught in schools. C as a first language just makes you a better coder I've always thought. C is the base for most modern high level languages, learn C, you can learn anything!
There are probably other reasons as well. Let's see what the others think.
But JAVA is easier to debug than C.
Posted 28 December 2013 - 07:11 AM
Before going ahead and making statements of why to learn C++ over Java, it should be clear that both languages are independent and a choice of using one over the other is entirely project dependent.
There are a ton of pros and cons to both languages and why each language may be be favored over the other and again as I mentioned its entire based on your requirements and what will be more appropriate for the case. So if you do some searching you'll find a few main differences but here are two to why I personally prefer C++ over Java.
1. C++ runs in native executable machine code; where as Java runs in a virtual machine. There are some cases where you would want your application to run outside of a virtual environment. Also to mention Java based on C++, was also written in C and C++.
2. C++ allows for explicit memory management; where Java has an automatic garbage collection. I personally think this would be the most appealing aspect to why to choose C++ over Java, having full control over memory instead of depending on a hopefully proper working garbage collector.
Those are just 2 reasons I can think of right now and I am sure there are plenty others for and against. Also keep in mind Java would be considered a very high level language as is C++, but C++ also works on a very low level; What I mean is Windows, Mac and Linux kernels were all written in C/C++ and some Assembly.
If you looking for a reason to learn C++ over Java, my opinion would be to learn both! I think learning C++ will also give you a little more of an appreciation to a language such as Java.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users