why we use static class in java