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
Which containers use a border layout as their default layout?
Explain about RMI Architecture?
What is threadfactory?
What is the difference between java class and bean?
What is message driven beam?
Write a program to show synchronization?
When is the best time to validate input?
What are the oops concept?
How substring() method of string class create memory leaks?
Describe activation process?
Is “abc” a primitive value?
What are externizable interface?
What is the difference between system.out ,system.err and system.in?
what are RemoteObjects?
how to use debug in my elipse to solve problems that exist in my project