What does public static void
mean in Java?
I\'m in the process of learning. In all the examples in the book I\'m working from public static void
It means that:
public
- it can be called from anywherestatic
- it doesn't have any object state, so you can call it without instantiating an objectvoid
- it doesn't return anythingYou'd think that the lack of a return means it isn't doing much, but it might be saving things in the database, for example.