Explain method overloading and overriding?

Answer Posted / aburar yaseen

overloading:previous answers are correct.
overriding: overriding is possible only in inheritance.
we will have more than one methods in the same name with
same no. of arguments with same type in different classes.

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is identifier with example?

789


What class of exceptions are generated by the java run-time system?

874


How big is a gigabyte?

815


What is difference between equals and hashcode method?

760


what is aggregation in java?

757


State the merge-sort principle and its time complexity.

747


How much ram can a 64 bit processor theoretically?

659


How do you check if a string is lexicographically in java?

709


Can you start a thread twice in Java?

842


What is java beans?

760


In java how do we copy objects?

745


Who is the owner of java?

744


What is a vector in java?

776


Why is stringbuffer faster than string?

680


What is an argument java?

712