What is the difference between declaring a variable
private static final int x;
and
private final static int x;
I mean what is the difference between declaring static first then final and vice versa .
Thank You :)
What is the difference between declaring a variable
private static final int x;
and
private final static int x;
I mean what is the difference between declaring static first then final and vice versa .
Thank You :)
Absolutely no difference at all. You can put those modifiers in any order.
thank you JamesCherrill :)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.