You have assigned your instance to Ba type variable A. Since it A.process()throws an exception, your code should handle this feature.
Imagine passing your instance to another method that takes As:
public void doSomething(A a) {
a.process;
}
source
share