• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Why is Java taught in Universities?

Page 5 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.
The exception is thrown to the command line because the programmer did something silly ... namely he didn't put an intelligent error message. The thing is, java tries REALLY hard to make you be good and realize when things are failed. Half of the reason it's slow is because of it's exception handling routines, which are implemented as table lookups and long-jumps. But they are there so that people won't have to see FIleNotFoundException. It actually takes WORK to ignore these messages.

Secondly, C++ is a sucks-ass language because it is too powerful. There are things we don't have to do anymore. Ninety percent of the time .... we don't need to do pointer-arithmetic. And if we couldn't .... we wouldn't get a LOT of the security-problems we have now (buffer-overflow errors which allow arbitrary bits of code to be executed are an exploit that is directly related to this problem). Multiple inheritance is a very confusing thing (basically if you inherit from two objects that have the same method .... which one do you inherit from?). All these issues were well thought out and java offers a very strong and precise OO implementation.

And to the Sys-Admin who wants it to be like "java ./foo.class" <---what the hell is that suppposed to mean?
You are not running "java" with a file .... you are passing the name of a class that has a main-method to be executed. It's a completely different concept and makes sense if you know what is actually going on.
 
Back
Top