Is there an equivalent or a hack to catch unimplemented method call in Java like we can do with doesNotRecognizeSelector in Objective C. I’m looking for a way to have an object replying to any method call with a default behavior when the method is not implemented ? Is it possible to use such a pattern in Java ?
Share
You can use
UnsupportedOperationExceptionwhich will do similar thing.