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



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. Well done. I am a mobile application developer. I'
View Tutorial          By: Wendi-tan at 2008-09-03 18:45:41

2. Thank you... Helpful :)
View Tutorial          By: Soopy at 2015-03-31 06:24:57

3. i have a error while i running this program

View Tutorial          By: parul at 2012-02-08 15:40:09

4. Runtime rt=Runtime.getRuntime();
String cmd

View Tutorial          By: saranya at 2014-10-30 05:36:36

5. good work done.
View Tutorial          By: Nitin at 2009-08-29 10:51:41

6. Very good explanation . i understood easily
View Tutorial          By: whyte at 2014-03-25 10:12:00

7. you can put the a loop for multiple extension
View Tutorial          By: Arun at 2012-12-07 05:23:47

8. can u give video of this code how it work & w
View Tutorial          By: vishal mande at 2015-04-04 08:20:30

9. Thank you......
View Tutorial          By: Suvadip at 2013-04-19 05:11:51

10. can you non grab the data direct from the vector w
View Tutorial          By: paul at 2013-08-30 11:22:04