Can we execute a program without main() method?
if yes or no
EXPLAIN
Answers
Answered by
1
According to my knowledge we cannot execute without a main method because when your running the java program. java Virtual machine look for the main method .if JVM could not find the main method it will show you run time error Exception in thread main could not find the main class.
Similar questions