Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain method overloading and overriding?

Answers were Sorted based on User's Feedback



Explain method overloading and overriding?..

Answer / janet

Method overloading: when a method in a class having the
same method name with different arguments is said to be
method overloading.
Method Overridding: when a method in a class having the
same method name with same arguments is said to be method
overridding.

Is This Answer Correct ?    21 Yes 5 No

Explain method overloading and overriding?..

Answer / chittaranjan

Method overloading: when a method in a class having the
same method name with different number/type of arguments
with the existense of prevoius meaning also is called
method overloading.
Method Overridding: when a method in a class having the
same method name with same number & type of argument(s)
however there mus not be any existense of previous meaning
is said to be method
overridding.

Is This Answer Correct ?    10 Yes 3 No

Explain method overloading and overriding?..

Answer / prasad

when we use method in a class hane same name with different
arguments are calles method overloading
when we use methodes with same class name and same
arguments called ovverriding

Is This Answer Correct ?    7 Yes 2 No

Explain method overloading and overriding?..

Answer / priyabrata patro

Method overloading happens in class with same method name but by modifying below features
1> By changing number of parameters
2> By changing ordinal position of parameter , i mean to say here is by changing datatype place.
And method overriding happens in two or more than two class , i mean defining same method declaration without any modification within two class and among of that two class , one class must extend another class and further also you can override this method , and this procedure continues till one subclass leaves overriding this method.

Is This Answer Correct ?    5 Yes 0 No

Explain method overloading and overriding?..

Answer / aburar yaseen

overloading:previous answers are correct.
overriding: overriding is possible only in inheritance.
we will have more than one methods in the same name with
same no. of arguments with same type in different classes.

Is This Answer Correct ?    7 Yes 4 No

Explain method overloading and overriding?..

Answer / ravikiran(aptech mumbai)

method overloading is the type of polymorphism with a
different argument list and same method name and can takes
place inside the same class only

method overriding is the process of writing a different
functionality having the same method signature

Is This Answer Correct ?    4 Yes 2 No

Post New Answer

More Core Java Interview Questions

How can we handle runtime exceptions? write one sample program? Can we write runtime exceptions beside the throws key word? if yes write sample program?

1 Answers   Huawei,


What is finally and finalize in java?

0 Answers  


What is Garbage Collection in Java

0 Answers   Wipro,


What is the difference between static class and normal class?

0 Answers  


Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..

0 Answers  


What is object of class in java?

0 Answers  


Does list allow duplicates in java?

0 Answers  


What is immutability in java?

0 Answers  


What is outofmemoryerror in java?

0 Answers   Cyient,


What is method Overloading in the perspective of OOPS?

6 Answers  


Can vector have duplicates in java?

0 Answers  


What a static class can contains?

0 Answers  


Categories