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



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. is there a way to notify a specific thread?
View Tutorial          By: bob at 2010-03-23 11:57:29

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

3. Dear sir i am complete my B.Tech in this year but
View Tutorial          By: Sarvesh at 2012-04-17 15:16:46

4. I am getting error in setContentView(R.layout.main
View Tutorial          By: user at 2012-01-13 06:49:42

5. I want a code to receive message from GSM modem us
View Tutorial          By: Mayur at 2011-04-05 00:00:05

6. Thanks, Just what i was looking for.
View Tutorial          By: Baapu at 2009-10-21 15:21:43

7. I am an MCA student i wanna know whether one can s
View Tutorial          By: RAJU.K at 2009-07-24 02:28:21

8. good!
View Tutorial          By: rey.ryan at 2009-03-14 05:49:28

9. very nice..!
View Tutorial          By: neeraj at 2012-04-21 11:12:08

10. Many many thanks. It is very very helpful. Again t
View Tutorial          By: Mehedi Hasan at 2009-09-15 21:41:51