Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is polymorphism with example?types of polymorphism?

Answers were Sorted based on User's Feedback



what is polymorphism with example?types of polymorphism?..

Answer / sai

Two Types,namely

1)Compile Time Poly(Say as Method Overloading)
Methods having same name but differ in no. of
Parameters,Return type and order of parameters.

2)Runtime Poly(say as Method Overriding and Dynamic Dispatch)
Subclass methods having the same signature as that
of the super class method.

Is This Answer Correct ?    1 Yes 0 No

what is polymorphism with example?types of polymorphism?..

Answer / sss

Polymorphsim means one name many form it is basically two type compile time polymorphsim and run time polymorphsim.

Is This Answer Correct ?    1 Yes 0 No

what is polymorphism with example?types of polymorphism?..

Answer / barkha

Polymorphism means one word having different meaning at
different instances.
There are two types.
1)Method overloading
2)Method overriding

Is This Answer Correct ?    25 Yes 39 No

what is polymorphism with example?types of polymorphism?..

Answer / sandeep

It is reacting differently for the same kind of message.

For example,

Consider Parrot,Penguin & tiger

My message is "approach me quickly"

Their different reactions:

Parrot approaches me by " flying"
Penguin approaches me by "swimming"
Tiger approaches me by "running"

Here my message is simply "pproach me quickly"
But different things have been reacted differently.

This is called Polymorphism.

As far as my knowledge is concerned there is only one type
of polymorphism and that is runtime polymorphism.

Is This Answer Correct ?    69 Yes 88 No

what is polymorphism with example?types of polymorphism?..

Answer / sachin

Three types

1) Method Overloading
2) Method Overriding
3) Interface

Is This Answer Correct ?    51 Yes 104 No

Post New Answer

More Core Java Interview Questions

What does main method?

0 Answers  


What is the formula to calculate percentage?

0 Answers  


Tell me the difference between an applet and a Japplet?

1 Answers  


What are heterogeneous objects?

0 Answers  


Is class forname reflection?

0 Answers  


finalize() method?

5 Answers  


What is multi level inheritance in java?

0 Answers  


Is null keyword in java?

0 Answers  


Hi Every One I Have Small Doubt Please answer This???????????????????????????? I Want to use AbstractList class methods(java.util.AbstractList) My Program is import java.util.*; class DemoOne extends AbstractList { public static void main(String[] args) { AbstractList a=new DemoOne();//This One is Correct?? DemoOne a1=new DemoOne();//This One is Correct?? Both Are Not Working System.out.println("Hello World!"+a); System.out.println("Hello World!"+a1); } } Error IS: DemoOne.java:2: DemoOne is not abstract and does not override abstract method get(int) in java.util.AbstractList class DemoOne extends AbstractList AnyOne can Please Provide The Solution????????????????????????? Plzzzzzzz

3 Answers  


Is main an identifier?

0 Answers  


How to compare two strings in java program?

0 Answers  


What is unicode used for?

0 Answers  


Categories