Could you please explain me any real time scenario (or) JAVA API examples for static field without final keyword ?
I have seen in Runtime.java; to make singleton They have declared like below
private static Runtime currentRuntime = new Runtime();
But here also we need final right ?
Counter of all instances of certain type:
Other example is classic singleton pattern.