Comment on Tutorial - Method Overloading sample in Java By Ganesh Iyer

Comment Added by : Subhojit Das

Comment Added at : 2014-10-09 07:31:20

Comment on Tutorial : Method Overloading sample in Java By Ganesh Iyer
//Program of Method Overloading with Runtime Values

import java.util.Scanner;

class cal
void add(int a,int b)
System.out.print("Addition of First 2No.s is : " +(a+b));

void add(int a,int b,int c)
System.out.print("Addition of Three No.s is : " +(a+b+c));


class mthdovrng
public static void main (String args[])
int a,b,c;
Scanner input=new Scanner(;
System.out.print("Enter First No. : ");
System.out.print("Enter Second No. : ");
System.out.print("Enter Third No. : ");
cal ob=new cal();

View Tutorial

Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Good explanation
View Tutorial          By: Siddesh at 2012-07-12 03:53:07

2. i have a program in which we have to find the summ
View Tutorial          By: Navjyot at 2013-01-28 10:38:55

3. Assume scenario:
- i have set connection po

View Tutorial          By: Dan at 2012-02-22 09:48:46

4. I am wanting to use a Honeywell 4600g handheld sca
View Tutorial          By: bugdrvr1970 at 2012-01-25 17:27:43

5. can anyone tell how to send sms in using p
View Tutorial          By: dubail at 2013-04-06 14:17:44

6. great, thnak you very much !!!!
View Tutorial          By: geek at 2014-05-11 00:10:32

7. very nice tutorial.. keep it up. cheers

View Tutorial          By: chanchal at 2013-01-24 06:54:23

8. java.lang.IllegalArgumentException means usually t
View Tutorial          By: Seink at 2008-11-12 11:03:00

9. Nice one
View Tutorial          By: Kalpana at 2009-11-17 02:04:14

10. if time out at step 6*** Exception is occure

View Tutorial          By: Bharat at 2011-08-17 10:42:23