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

How are variables stored in memory?

570


What is an exception in java?

638


Why is inheritance used in java?

595


Explain the protected field modifier?

588


What is the preferred size of a component in java programming?

535






Write a program based on Java script program.

637


What are the five major types of reference sources?

523


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread

522


What is an iterator java?

523


What is the difference between public, private, protected, and friend access?

566


What is string args [] in java?

533


What is substring in java?

608


What are the new features in java 8? Explain

553


Is break statement can be used as labels in java?

495


what is the purpose of "virtual"?

562