filmov
tv
Why Java is Better than C and C++

Показать описание
Can you tell me why Java is better than C and C++?
Java is on virtually every machine out there, because it is IT agnostic.
What is IT agnostic?
It means that Java does not care what device it is on, be it tablet or PC, and it does not care what operating system it works with, from Apple iOS to Microsoft to Linux to Ubuntu.
At least you covered the whole alphabet of OS there. Why else is Java so popular?
Java is growing in popularity because it is being taught in college level programming classes. C and C++, being over twenty years old, are not taught as much for fear students get mad at being taught something obsolete.
It is like teaching Fortran, or the next Fortran, Ruby on Rails.
Java does have security holes. That's why it has to be continually updated.
Part of that is due to the open architecture. But you'll get more security holes using less supported languages like Lua or JavaScript.
To build on that, Java is better for web projects and web functionality than C. You can build an enterprise application in C or C++, but apps will be in Java or Python or another OOP language.
The ability to tailor graphics and audio card sound generation are why C++ and C are still used in gaming at all.
You do not have to learn so much syntax related to controlling hardware functions like the device drivers and audio card, which is why Java is easier to learn.
In Java, everything is a class.
And that's why class inheritance is such a pain. But Java does have the Java Virtual Machine, a compiler so good languages other than Java use it.
Java does not let you use concrete methods. Java is sometimes so convoluted it is hard to figure out.
C++ code compilers are on nearly every type of hardware. However, once it complies to that device, the code is not easily transferable to something else.
And in a mobile world, lack of portability is every reason not to use it.
Java is on virtually every machine out there, because it is IT agnostic.
What is IT agnostic?
It means that Java does not care what device it is on, be it tablet or PC, and it does not care what operating system it works with, from Apple iOS to Microsoft to Linux to Ubuntu.
At least you covered the whole alphabet of OS there. Why else is Java so popular?
Java is growing in popularity because it is being taught in college level programming classes. C and C++, being over twenty years old, are not taught as much for fear students get mad at being taught something obsolete.
It is like teaching Fortran, or the next Fortran, Ruby on Rails.
Java does have security holes. That's why it has to be continually updated.
Part of that is due to the open architecture. But you'll get more security holes using less supported languages like Lua or JavaScript.
To build on that, Java is better for web projects and web functionality than C. You can build an enterprise application in C or C++, but apps will be in Java or Python or another OOP language.
The ability to tailor graphics and audio card sound generation are why C++ and C are still used in gaming at all.
You do not have to learn so much syntax related to controlling hardware functions like the device drivers and audio card, which is why Java is easier to learn.
In Java, everything is a class.
And that's why class inheritance is such a pain. But Java does have the Java Virtual Machine, a compiler so good languages other than Java use it.
Java does not let you use concrete methods. Java is sometimes so convoluted it is hard to figure out.
C++ code compilers are on nearly every type of hardware. However, once it complies to that device, the code is not easily transferable to something else.
And in a mobile world, lack of portability is every reason not to use it.
Комментарии