0

Why this type of static members is allowed in inner classes? I mean what it give us? I can only imagine something like this:

public class Math {
    public class Trigonometry {
        static final int SIN_90_DEGREE = 1;
        //...
    }
}

But why any static field is prohibited but compile-time constants is allowed i still can't clearly understand.

Dmytro
  • 1,719
  • 2
  • 13
  • 19

0 Answers0