4 ms·
The two features I miss from java: 1. The compiler checks for exceptions being thrown and and makes you write a catch. 2. Anonymous inner classes.I prefer eve
by samfisher83 10y ago
The two features I miss from java:
1. The compiler checks for exceptions being thrown and and makes you write a catch.
2. Anonymous inner classes.I prefer even handlers, but would still like this feature.
I think c# does a good job of always adding features that make it easier to write code.
- rusanu 10y agoInteresting that you miss checked exceptions. Is one of the most criticized feature of the language, see Does Java need Checked Exceptions? [0]. Also in this discussion between Anders Hejlsberg and Bruce Eckel they are discussing why C# did not adopt them: The Trouble with Checked Exceptions [1]. Also Java theory and practice: The exceptions debate [2] discusses the more on the topic. [0] http://www.mindview.net/Etc/Discussions/CheckedExceptions/ http://www.mindview.net/Etc/Discussions/CheckedExceptions/ [1] http://www.artima.com/intv/handcuffs.html http://www.artima.com/intv/handcuffs.html [2] https://www.ibm.com/developerworks/library/j-jtp05254/ https://www.ibm.com/developerworks/library/j-jtp05254/