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

How list contains works in java?

558


What is the difference between keyword and identifier?

537


Can we rethrow the same exception from catch handler?

566


Is there any difference between nested classes and inner classes?

540


Explain the scope or life time of class variables or static variables?

519






How does class forname work in java?

482


What is string subsequence method?

629


Is .net better than java?

555


What is the difference between integer parseint and integer valueof?

551


What is an image buffer?

539


Why should we use singleton pattern instead of static class?

462


How do you achieve polymorphism in java?

523


What is difference between identifier and variable?

475


What are the two ways of implementing multi-threading in java?

816


Explain the selection sort algorithm and state its time complexity?

612