R
Roedy Green
When I call a method via an interface reference rather than a class
reference, all the checked exceptions it could throw will not
necessarily be known.
So the calling method won't know to use a try block or declare throws
xxxx.
This occurred to me just as I was drifting off to sleep. Is there
some flaw in my thinking or is this a giant loophole in the Exception
structure?
reference, all the checked exceptions it could throw will not
necessarily be known.
So the calling method won't know to use a try block or declare throws
xxxx.
This occurred to me just as I was drifting off to sleep. Is there
some flaw in my thinking or is this a giant loophole in the Exception
structure?