Antra Interview Question

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

Interview Answers

Anonymous

Aug 28, 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.

Anonymous

Aug 28, 2019

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