C is not as much universal as java but more than any other languages. And for device drivers c/c++ are best afaik...
Ashik Uzzaman Senior Member of Technical Staff,
Salesforce.com, San Francisco, CA, USA.
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted
0
I don't know exactly what you mean by universal, but programs written in C can do much more with your computer than programs written in Java. If they're written carefully they can even be compiled for more platforms, while Java programs can just be compiled once and run out-of-the-box on any platform with a virtual machine. Device drivers are best written in C (C compiles to much faster, more compact machine code) although since C++ is just C with a few whistles and bells, you can probably write them just as well in C++. Java, however, isn't appropriate for writing drivers. Unless you write some JNI, you're limited to Sun's cross-platform APIs with no special devices.