Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Advantages of method Overloading and Overriding

  1. #1
    Member
    Join Date
    Mar 2011
    Posts
    114
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Advantages of method Overloading and Overriding

    From google, i read that method overloading and overriding will "Increase the performance & lot of memory space has been
    SAVED.."


    How the memory space is being saved by overloading/overriding?


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Advantages of method Overloading and Overriding

    Could you post a link to the source you got this information from?

    Method overloading should have zero effect on both performance and memory usage (they're physically two different methods, they just happen to have the same name).

    Directly, method overriding should have zero or near zero effect on both performance and memory usage. However, method overriding does allow you to make use of polymorphism and properly use generic types, allowing you to program more efficiently and thus write higher quality code with less effort (that's the hope, at least).

  3. #3
    Member
    Join Date
    Mar 2011
    Posts
    114
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Re: Advantages of method Overloading and Overriding

    I read the above from here
    What is the use/advantage of function overloading.
    Can u point me to a link which lists advantages of polymorphism

Similar Threads

  1. Overriding Superclass Static Methods, Using the Superclass Method
    By snowguy13 in forum Java Theory & Questions
    Replies: 10
    Last Post: December 21st, 2011, 07:30 AM
  2. Help with overriding
    By JavaStudent1988 in forum Java Theory & Questions
    Replies: 2
    Last Post: October 18th, 2011, 01:08 AM
  3. Overriding Methods
    By tcstcs in forum Java Theory & Questions
    Replies: 5
    Last Post: June 2nd, 2011, 04:23 AM
  4. Method Overloading - Doubt
    By vidya lakshman in forum Java Theory & Questions
    Replies: 2
    Last Post: January 31st, 2011, 08:32 AM
  5. Overloading vs Overriding
    By nickypass in forum Java Theory & Questions
    Replies: 1
    Last Post: October 17th, 2010, 01:53 AM