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,850
  • 3
  • 14
  • 20

0 Answers0