Question d’entretien chez Cognizant

Java : Why main method is static? How do you write custom exception?

Réponse à la question d'entretien

Utilisateur anonyme

8 oct. 2016

Object is not required to create a static method. We can extend the java exception class to create our own exception