Domanda di colloquio di Antra

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

Risposte di colloquio

Anonimo

28 ago 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.

Anonimo

28 ago 2019

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