About Question enthuware.ocpjp.v21.2.3726 :
Posted: Fri Sep 19, 2025 2:45 pm
Hello,
((AA)a).mAA(); will throw classCastException, right? But I am guessing since a.power() is not equals to 1, it will not execute the if block, so we are safe?
((AA)a).mAA(); will throw classCastException, right? But I am guessing since a.power() is not equals to 1, it will not execute the if block, so we are safe?