Pergunta de entrevista da empresa Antra

What's polymorphism? What's interface? What's static keyword in Java?

Respostas da entrevista

Sigiloso

28 de ago. de 2019

polymorphism: a single object can refer to the super class or sub class, depending on the reference type. \ interface: multiple inheritance can not be achieved in java. Using interface can overcome this issue. interface only has methods declaration, no method implementation.

Sigiloso

28 de ago. de 2019

static: you do not need to create instance for static method. global accessible.