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 useful information from this page.
View Tutorial          By: mahadevi at 2012-04-12 04:38:53

2. Thank you, that was short and enough :)
View Tutorial          By: Bilal korir at 2014-05-20 21:37:12

3. Following question to this topic:
- when i

View Tutorial          By: Alistair at 2012-01-14 10:59:52

4. Thanks, much appreciated!
Saved a great dea

View Tutorial          By: alan at 2009-08-14 01:35:01

5. It would he helpful to know difference between a l
View Tutorial          By: Tosh at 2012-04-28 18:00:20

6. can any beginners can try creating web pages

View Tutorial          By: jo at 2015-07-28 19:35:11

7. how to create inode address using c++
View Tutorial          By: pooja at 2014-06-24 05:50:33

8. Its self-explaining and fullfilling example.
View Tutorial          By: vijay at 2010-03-29 02:36:41

9. Thanks to the author, it was really a good tutoria
View Tutorial          By: Ashok Kumar at 2010-04-29 05:54:47

10. Good explanation about Iterator. But Object declar
View Tutorial          By: Prasad at 2008-12-22 23:20:59