employer cover photo

Compuware Information Technology

Is this your company?

Compuware Information Technology interview question

Tell me about yourself Java Inheritance Polymporphism

Interview Answer

Anonymous

Nov 8, 2016

My name is Sanjeev Kumar. I am from meerut. I done my B.tech from AKGEC,GHAZIABAD. I am very intesrested in Java. I am like live like a cool boy. I am expert in Mathematics problem solving. JAVA : Java is a programming language and a platform.Java originaly developed by Sun Microsystem in 1995. Java is a high level, robust, secured and object-oriented programming language. According to Sun, 3 billion devices run java. Inheritance : Inheritance in java is a mechanism in which one object acquires all the properties and behaviors of parent object.The idea behind inheritance in java is that you can create new classes that are built upon existing classes. When you inherit from an existing class, you can reuse methods and fields of parent class, and you can add new methods and fields also.Inheritance represents the IS-A relationship, also known as parent-child relationship. Polymporphism : Polymorphism in java is a concept by which we can perform a single action by different ways. Polymorphism means many forms.There are two types of polymorphism in java: compile time polymorphism and runtime polymorphism. We can perform polymorphism in java by method overloading and method overriding.If you overload static method in java, it is the example of compile time polymorphism. Here, we will focus on runtime polymorphism in java.