PrepZone Logo
PrepZone
Back to Java

Java · Easy

Can we make main() method final, static, synchronized, or overloaded?

JavaCore Java

Answer preview

static — It must be static — the JVM invokes main() without creating an instance. The signature public static void main(String[] args) is mandatory for the entry point.…