+ 2
In java, can we execute our program without main() method? What do you say YES or NO?
Java quizzes
2 Answers
+ 2
We can.
check this...
abstract static Example extends javafx.application.Application{
static{
System.out.println("Hello world without main()");
System.exit(0);
}
}