I realize, that, in some cases, main
shall not be private
(and sometimes not protected
), and in other cases, it may compile.
But, I was wondering if the class containing main
can look like this:
private final class Main {
public static void main(String[] args) { /* ... */ }
}
.