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

What is ioc concept & explain it?

625


how do you Handle Front End Application data against DB with example?

1485


What is the form of storage space in java?

1744


What is aop(assepct oriented programing)?

589


What class is the top of the awt event hierarchy?

586






AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?

1650


What are the steps to write p-to-p model application?

1968


What is the infobus?

616


whats is statement and procedure

1597


How primary key is implemented in Oracle?

1922


What class is used to create Server side object ?

1678


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

1741


Define prototype?

590


What is Remote Server?

1690


Explain the steps in details to load the server object dynamically?

4550