From the question What's the meaning of System.out.println in Java? I found that out
in System.out.println
is a static field.
From C/C++ background, it's easy to understand static method, as it's the same as function in C. However, I'm not sure the use case of static field.
Is it just a way to use multiple methods without instantiating an object just as we use System.out.println
without instantiating anything? Or is there any use cases for static field?