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



Comment Added by : Amujuri Vivek

Comment Added at : 2013-01-08 02:48:50

Comment on Tutorial : Method Overloading sample in Java By Ganesh Iyer
HI,

can any one tell me small but silly doubt about overloading that whether we do overloading using access specifiers.that menas see the below code:

ckass A
{
void overload()
{
System.out.println("overloading ....");
}
private void overload()
{
System.out.println("overloading......");
}
protected void overload()
{
System.out.println(Overloading....);
}
}



class test
{
Public static void main(String a[])
{
A a1=new A();
a1.overload();
}
}

Can any one tell me what is the output for this.


View Tutorial



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. very nice example
View Tutorial          By: harshal at 2013-02-06 09:34:10

2. Please tell me how to display the contents of stac
View Tutorial          By: Senthil at 2014-05-21 21:44:05

3. Buenisimo tutorial, este rebuena la cosa
Gr

View Tutorial          By: Popoca at 2010-04-20 15:50:29

4. nice code. code is running perfectly. but my probl
View Tutorial          By: Avinash at 2013-01-28 07:30:19

5. hello,
i have to connect the crystal report

View Tutorial          By: shanmugaraj at 2010-03-03 04:08:30

6. its show objects are not equal
View Tutorial          By: Amit at 2012-12-22 14:56:29

7. Hi ,Razvan

I changed code as in you

View Tutorial          By: sanil at 2011-01-01 11:05:53

8. Hi ,

Since both the methods in the

View Tutorial          By: Chintan at 2013-11-21 03:42:32

9. sir, thanks sir. very help to me. its simple and e
View Tutorial          By: kannathasan.M at 2012-10-01 07:59:28

10. Thanks ,got useful information on toString().
View Tutorial          By: jaffar at 2011-08-01 10:15:04