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
we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?
What is the difference between a menuitem and a checkboxmenuitem?
Write a program to show synchronization?
Explain about thread synchronization inside a monitor?
What are transaction attributes?
What are the purpose of introspection?
What is a tasks priority and how is it used in scheduling?
What is the purpose of the notifyall() method?
How primary key is implemented in Oracle?
when A client sent a request to the server to open facebook page and close the browser after this request .at that time the same user do login by using a different browser then that session id will exist or not for the same client??
What modifiers may be used with an inner class that is a member of an outer class?
When a thread blocks on i/o?
Which are the different segments of memory?
What is ioc concept & explain it?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?