0 votes
in Education by (54.6k points)
Can we execute a program without main() method?

1 Answer

0 votes
by (54.6k points)

Can we execute a program without main() method?

Yes, one of the ways to execute the program without the main method is using static block. More Details.

...