Distinguish method overloading and overriding

Answers were Sorted based on User's Feedback



Distinguish method overloading and overriding..

Answer / pralay

Method Overloading is functionality of java in which we can
declare many method with same name but different signature
in one class, but Overriding is a the process of declare a
method which is already define in super class, this Method
has same name and same signature as super class.

Is This Answer Correct ?    6 Yes 1 No

Distinguish method overloading and overriding..

Answer / 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

More Core Java Interview Questions

What are the features of java?

0 Answers  


Why volatile is used in java?

0 Answers  


What is adapter class?

12 Answers  


Can you declare the main method as final?

0 Answers  


What is methods in java?

0 Answers  






What is a dynamic array in java?

0 Answers  


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?

9 Answers   KPIT,


What does 3 dots mean in java?

0 Answers  


What is the difference between Object and Instance?

5 Answers   TCS,


What is java in simple terms?

0 Answers  


Wha is the output from system.out.println(“hello”+null); ?

0 Answers  


What is difference between iterator access and index access?

0 Answers  


Categories