Q:

inner class baeldung

public class Enclosing {
     
    private static int x = 1;
     
    public static class StaticNested {
 
        private void run() {
            // method implementation
        }
    }
     
    @Test
    public void test() {
        Enclosing.StaticNested nested = new Enclosing.StaticNested();
        nested.run();
    }
}
0

Tags

New to Communities?

Join the community