What is the purpose of creating static object in Java?
The static keyword in Java means that the variable or function is shared between all instances of that class, not the actual objects themselves. In your case, you try to access a resource in a static method, Thus anything we access here without creating an instance of the class Flavor1Demo has to be a static … Read more