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. Very good explanation along with the example. Can
View Tutorial          By: Divya at 2010-09-21 03:05:10

2. thanks. worked.
View Tutorial          By: che at 2010-03-10 11:29:10

3. Really clear and lucid explanation abt realloc ...
View Tutorial          By: metarus208 at 2012-01-01 14:25:25

4. To make this work with out error I had to add:
View Tutorial          By: Jester at 2009-03-26 15:25:59

5. Okay, I have implemented this and it works, except
View Tutorial          By: Matthew at 2009-06-16 13:08:48

6. output is not specified there.., it must should be
View Tutorial          By: yash at 2014-09-17 16:35:52

7. thanx for providing good knowledge @ overriding
View Tutorial          By: Amol at 2011-05-05 02:28:43

8. how do i use the jsapi classes and the freets pack
View Tutorial          By: Chileshe at 2012-08-22 14:23:38

9. it is perfectly working...
View Tutorial          By: Venkatesh at 2014-09-21 06:54:39

10. @Vaibhavn if you use an IP instead of a host name
View Tutorial          By: RDMA at 2011-01-04 14:30:15