Explain method overloading and overriding?

Answer Posted / prasad

when we use method in a class hane same name with different
arguments are calles method overloading
when we use methodes with same class name and same
arguments called ovverriding

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 2 types of java programs?

773


Which collection is best for sorting in java?

876


What are synchronized methods ?

810


How to check if linked list contains loop in java?

635


What is consumer in java?

688


What is callablestatement? How you can call stored procedure to pass in parameter?

743


What is multithreading in java?

748


what is the major difference between linkedlist and arraylist in java?

738


what is encapsulation in java? Explain

840


When do we use synchronized blocks and advantages of using synchronized blocks?

857


Difference between Preemptive scheduling vs. Time slicing?

763


What are the advantages of defining packages in java?

721


Explain about serializable interface in java?

761


Enlist few advantages of inheritance?

816


Can you explain the usages of class.forname()?

830