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

1 Answer

0 votes
by (55.8k 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.

Related questions

0 votes
asked Mar 16, 2021 in Technology by JackTerrance (1.8m points)
...