Categories
Computer

What if the main method is declared as private?

► The program does not compile…
► The program compiles but does not run Click here for Detail
► The program compiles and runs properly
► The program throws an exception on compile time

Leave a Reply

Your email address will not be published. Required fields are marked *