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
What are the advantages of passing this into a method instead of the current class object itself?
What is class variable java?
How do you check if two given string are anagrams?
In case of inheritance what is the execution order of constructor and destructor?
I want to print “hello” even before main is executed. How will you acheive that?
How can constructor chaining be done using this keyword?
How do you format in java?
Is Java a dying language?
What do you mean by composition in java?
What's the base class of all exception classes?
What is the simpletimezone class in java programming?
What is the purpose of the wait(), notify(), and notifyall() methods in java programming?
Why is java called the platform independent programming language?
Difference between stack and queue?
What are the types of casting?