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 :)

Recommended Answers

All 2 Replies

Absolutely no difference at all. You can put those modifiers in any order.

thank you JamesCherrill :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.