Anirudh Prayaga wrote:Thanks for the welcome and response guys, yes I was able to import the uninitialized static field (not final) by declaring it public.
Just because you can, doesn't mean
you should. Take care when using static imports, especially if it's a public mutable field. As Campbell pointed out, that makes the variable a global mutable value, which is not advisable to have. Prefer encapsulating those kinds of values instead.