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
- Data Science
- React Native
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Read a file having a list of telnet commands and execute them one by one using Java
Open a .docx file and show content in a TextArea using Java
Step by Step guide to setup freetts for Java
Of Object, equals (), == and hashCode ()
Using the AWS SDK for Java in Eclipse
DateFormat sample program in Java
concurrent.Flow instead of Observable class in Java
Calculator application in Java
Sending Email from Java application (using gmail)