Pregunta de entrevista de Cognizant

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

Respuesta de la entrevista

Anónimo

8 oct 2016

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