cswork / OAOpen practice workspace

PaycomOA #16

Q16. Static Analysis — Java try/finally

Estimated EasyConcept questionStatement and editorial — judging is being prepared

Topics (AI-labelled)Simulation

public class X {
    public static void main(String[] args) {
        try {
            badMethod();
            System.out.print("A");
        } catch (Exception ex) {
            System.out.print("B");
        }
        finally {
            System.out.print("C");
        }
        System.out.print("D");
    }
    public static void badMethod() {}
}
  • AC / BC / ACD <- / ABCD

Editorial

Loading solution…