About Question enthuware.ocpjp.v11.2.3503
Posted: Thu Aug 29, 2024 3:42 am
public class TestOuter { public static class TestInner {
public void sayIt(){ System.out.println("hello"); } }
public static void main(String[] args){
//call here
} }
Why TestInner.sayIt(); cannot be the the second answer?
public void sayIt(){ System.out.println("hello"); } }
public static void main(String[] args){
//call here
} }
Why TestInner.sayIt(); cannot be the the second answer?