Computer Science, asked by anuj, 1 year ago

Can we execute a program without main() method?
if yes or no
EXPLAIN

Answers

Answered by Taiba291002
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