Static exceptions (original) (raw)
What do y'all think of this code:
public class Foo { private static final Exception bad;
static { bad = new Exception(); }
public void amethod() throws Exception { throw bad; } }
I though this was REALLY weird. Would'n't it screw up the call stack to throw an exception that is statically allocated?
I'm following this tutorial on the netbeans website for a simpleEE7App. I followed the instructions precisely but got an exception need help. :/…
anyone here?
It seems that you can override a concrete method and make it abstract. I actually came across some code that did this, so I had to check how it…
I'm following this tutorial on the netbeans website for a simpleEE7App. I followed the instructions precisely but got an exception need help. :/…
anyone here?
It seems that you can override a concrete method and make it abstract. I actually came across some code that did this, so I had to check how it…