why java does compile time polymorphism at run time ?

Answer Posted / pratiksha

Compile time polymorphism-->i.e.method ovrloading and it is
done at compile time.Because in overloading same method
names having different signature and compiler can decide which
method to run by checking data type of arguments.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between class and object in java?

592


How many bits is a boolean?

681


Is Java a dying language?

644


What is meant by method?

633


What best practices should you follow while writing multithreaded code in java?

619






Describe the term diamond problem.

636


What is instance synchronization?

626


What is Enum in Java?

753


How we can generate random numbers in java?

679


Does constructor return any value?

643


What is integer parseint?

609


what is synchronization and why is it important? : Java thread

671


What do you mean by local class?

587


What is the final class?

615


How do you initialize an arraylist in java?

578