How to use final in static class? Which way is true ?
private final static class
or
private static final class
You can use any. No Problem.
Nothing wrong and there is no order. as a standard we are using this as private static final class
but again there is nothing wrong of using both.
Either of them is fine. There is no real difference, although there is no such thing as static class in java.
Have a look at this post to know how to make a class static.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With