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

Which package is imported by default?

837


What is encapsulation in java?

852


what is mutual exclusion? : Java thread

778


Are arrays passed by reference in java?

693


What is java command?

791


What is the simpletimezone class in java programming?

830


How many times finalize method will be invoked? Who invokes finalize() method in java?

790


How is tree Mirroring implemented?

822


What is substring in java?

830


What is the use of inner class?

773


What do you mean by local class?

762


Can two objects have same hashcode?

749


Explain spliterator in java8?

800


Which collection does not allow duplicates in java?

716


What is flush buffer?

752