To run every Java programme main() is necessary otherwise the programme would compile or run.
Whether class contains main() or not and whether mean is declared according to requirement or not these things wont cheque by compiler.
At runtime JVM is re...