Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is Static binding?

Answer Posted / vikneswaran

static binding is nothing but in case of method overloading
its also called compiletime polymorphizm
method overloading is a class have more than one methods
with same name and different signature .diff singnature
means diff no of arguments & diff datatype of arguments &
diffsequence of arguments .
for example:
public class sample
{
public class method()
{
System.out.println("with out argumrnts
methods:");
}
public class method(int a, String b)
{
System.out.println("diff datatype of
arguments");
}
public class method(String a,int b)//diff sequence
of arguments
{
System.out.println("diff sequence of
arguments:");
}
public class method(int a,String b,String c)
{
System.out.println("diff data and diff no
of arguments");
}

public static void main(String args[])
{
sample s= new sample();
s.method();
s.method(2,"vikki");
s.method(5,"new",12);
}

}


JVm knows which method call during compile time

Is This Answer Correct ?    17 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is synchronization?

1098


How can I scroll through list of pages like the search results in google?

969


What is the difference between a menuitem and a checkboxmenuitem?

1116


what are memory considerations of jsp compares to other web components?

6538


Why a component architecture for the java platform?

1217


Name three component subclasses that support painting?

1081


Difference between hashmap and hashtable?

1156


Explain phantom read?

2231


What are various types of class loaders used by jvm?

1000


Which javutil classes and interfaces support event handling?

1046


What is aop(assepct oriented programing)?

1063


what is meant by JRMP?

2354


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

2209


How would you create a button with rounded edges?

1153


What method is invoked to cause an object to begin executing as a separate thread?

1040