Distinguish method overloading and method overriding

Answer Posted / sushila

method overloading is method name should be same but
signature should be different.

method overriding is method name and arguments should be
same but return type will be same or wider.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is nan in java?

520


What is sleep method?

623


Give me some null interfaces in java?

603


What is the difference between iterator and enumeration ?

514


How do you check if an arraylist is not empty?

578






What is passing value java?

510


How do you define a variable?

538


What are the basics of core java?

548


Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.

1610


What is java lang object?

531


What is the instance of an object?

552


What are aggregate functions explain with examples?

526


What is static class

618


What is garbage collector?

620


How will you print number in reverse (descending) order in BST.

582