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 / vikneswarank
Its a overLoading .because overriding have two diff class
and return type also same
but overloading have one class,and it have same method name
and diff signature.
Is This Answer Correct ? | 3 Yes | 8 No |
Post New Answer View All Answers
What is the use of bufferedreader?
Are constructors methods?
Difference between predicate, supplier and consumer ?
What is runtime polymorphism or dynamic method dispatch?
Is alive in java?
What is use of super keyword in java?
Detail discussions on JVM, memory management and garbage collector.
Why arraylist is not synchronized in java example?
What are pass by reference and pass by value?
what are three ways in which a thread can enter the waiting state? : Java thread
What happens when a thrown exception is not handled?
Why packages are used?
Can we rethrow the same exception from catch handler?
What is memory leak and how does java handle it?
Can java arraylist hold different types?