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. Thanks a lot for the code...
thats working

View Tutorial          By: Rahul at 2008-06-28 14:16:10

2. can i using stack in microsoft access 2007
View Tutorial          By: pxin at 2015-03-24 05:45:56

3. Hi. I have implemented the code and controls just
View Tutorial          By: eibod at 2011-02-13 04:58:44

4. nice 1
View Tutorial          By: vivek at 2013-03-19 16:25:47

5. Good Artical - Vagha
View Tutorial          By: Bharat at 2010-07-20 23:19:19

6. hi sir i want to know source code of this program;
View Tutorial          By: rishabh at 2010-08-21 09:30:31

7. hello
i have a final studie project that sp

View Tutorial          By: samer at 2011-08-18 07:39:25

8. Hi,,
I dont have a problem Insert, Update a

View Tutorial          By: Yavuz at 2010-09-01 14:15:02

9. HI,

can any one tell me small but s

View Tutorial          By: Amujuri Vivek at 2013-01-08 02:48:50

10. great tutorial but for me blob handling is still s
View Tutorial          By: Sarcina Saptamani at 2011-11-10 09:15:07