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. The following line in the code
((NewThread)

View Tutorial          By: Carlos at 2009-11-18 14:34:51

2. give an recursive example using string
View Tutorial          By: sauk at 2011-08-22 16:16:41

3. gr8 help dude thankx a lot:-)
View Tutorial          By: Mr. Bond at 2011-12-09 19:21:36

4. Hi, thank you so much for this. I am going to give
View Tutorial          By: Eddie at 2011-02-21 14:10:04

5. thank you.
View Tutorial          By: lluulnw at 2014-11-22 12:39:35

6. How can I save the canvas edited by the user from
View Tutorial          By: pavan at 2014-10-14 08:26:55

7. Thanks.... Nice Example
View Tutorial          By: Nagarjuna at 2012-05-29 12:00:50

8. its so nice
View Tutorial          By: senthilkumar at 2010-11-11 02:44:37

9. give me some logics for programs as soon as possib
View Tutorial          By: nari at 2011-12-07 18:28:03

10. thanks emily, this was fantastic... just saved me
View Tutorial          By: philip at 2010-04-10 20:39:08