Explain method overloading and overriding?

Answer Posted / janet

Method overloading: when a method in a class having the
same method name with different arguments is said to be
method overloading.
Method Overridding: when a method in a class having the
same method name with same arguments is said to be method
overridding.

Is This Answer Correct ?    21 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are methods?

547


What is time complexity java?

531


Does java have a compiler?

552


What is an interface in java? Explain

568


What is a container in a gui?

543






What is the size of arraylist in java?

602


What’s the difference between the methods sleep() and wait()?

536


What is the base class of all exception classes?

577


Can a class be private in java?

535


What is arraylist class in java?

507


Is array a class in java?

501


How many types of the indexof method are there for strings?

485


What is the difference between variable & constant?

536


Give me example of derived data types.

585


What is java and their uses?

544