Will this code be compile?

1: public class InnerExample {
2:    public class Inner {
3:         static final int x = 3;
4:         static int y = 4;
5:    }
6:    static class Nested {
7:         static int z = 5;
8:    }
9: }

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes