Distinguish method overloading and overriding

Answer Posted / anita kumari

In case of overloading signature should be different.
In case of overriding signature should be shame. Return type should be same. And acess level will be same or wider.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of passing this into a method instead of the current class object itself?

1167


What is class variable java?

581


How do you check if two given string are anagrams?

551


In case of inheritance what is the execution order of constructor and destructor?

634


I want to print “hello” even before main is executed. How will you acheive that?

654






How can constructor chaining be done using this keyword?

586


How do you format in java?

545


Is Java a dying language?

569


What do you mean by composition in java?

561


What's the base class of all exception classes?

562


What is the simpletimezone class in java programming?

534


What is the purpose of the wait(), notify(), and notifyall() methods in java programming?

572


Why is java called the platform independent programming language?

569


Difference between stack and queue?

585


What are the types of casting?

592