There are 2 methods in a class. Both have the same method
signature except for return types. Is this overloading or
overriding or what is it?

Answer Posted / debapriya

Niether overloading nor ovverriding ,this question has errors

Overloading---->different method
signatures(order,type,number different)
Ovveriding signature same but subclass can implement this method


So ??????????????.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are abstract methods in java?

769


What is the difference between Grid and Gridbaglayout?

680


Can singleton class be serialized?

618


What do you understand by copy constructor in java?

609


What is remote method invocation (rmi)?

694






How do you implement polymorphism in our day to day life?

2856


How many static init can you have?

784


Why do we need array in java?

617


Can we have return statement in finally clause? What will happen?

609


Where are the card layouts used?

698


What is the use of :: in java?

667


What is the difference between && and & in java?

672


What do negative exponents mean?

639


What is the purpose of assert keyword used in jdk1.4.x?

658


What occurs when an object is constructed?

654