As I said before, I am a supporter of checked exceptions in Java. I think they are a great idea that supports serious software development in the real world. I also think Java’s huge success can be attributed in part to checked exceptions. But this doesn’t mean I like everything
Filed under: Java Exceptions, Java Language, Opinions by Daniel Pietraru
4 Comments »
Is there something wrong with Java exceptions? Does Java need a fundamental change in this area? Is the proposal to make all exceptions in Java runtime exceptions a solution to a real problem? What if this proposal is the solution to the wrong problem?
While reading about this conflict I started to ask myself questions like [...]
Filed under: Java Exceptions, Java Language, Opinions by Daniel Pietraru
No Comments »
Dealing with exceptions is hard. For a while now in the Java world there are two camps. One considers the initial design of the Java exceptions system a sensible one, a feature that contributed greatly to Java’s success. A new camp has also formed in Java world and this new camp considers the original design [...]
Filed under: Java Exceptions, Java Language, Opinions by Daniel Pietraru
11 Comments »
An anonymous class in Java is a class with no specified name declared and instantiated at the same time. Because it has no name it can only be used once at place of declaration. Anonymous classes implement an interface or extend a class. They cannot declare their own constructors (they don’t have a name known [...]
Filed under: Java Language by Daniel Pietraru
Comments Off
Local inner classes are declared inside of a block of code. This block can be static bloc, a constructor, a method or simply a block of code surrounded with curly braces. These classes are only visible inside the enclosing bloc, but inside the block full hierarchies of classes can be developed. Local inner classes can [...]
Filed under: Java Language by Daniel Pietraru
Comments Off