In Java, if I want to use a method without instantiating an object of a particular class, I use static import.
Something like:
import static com.company.SomeClass.*;
Then I can call methods from this class in another class without creating an instance of SomeClass.
As soon as I use a method from this class, is it also a constructor from this class?
For example, if I call
SomeClass.doStuff();
Does the constructor for SomeClass get called backstage?
java constructor import static
foobar5512
source share