what is Static binding?

Answers were Sorted based on User's Feedback



what is Static binding?..

Answer / saumyaranjandash

Generally in case of Methodoverloading static binding
occurs,it is otherwise called early binding..here the
arguments of methods will resolve during the compilation
stage...so you will avail those methods code after
compilation state...but where as in overriding it is
happening in runtime...so it is dynamic binding...

Is This Answer Correct ?    20 Yes 14 No

what is Static binding?..

Answer / 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

More Advanced Java Interview Questions

What are the thread-to-thread communcation?

1 Answers  


Explain bind(), rebind(), unbind() and lookup() methods?

1 Answers  


How messaging services are done, before release of JMS?

0 Answers  


difference between applicationserver and webserver

4 Answers   SolutionNET,


What is a layout manager?

2 Answers  






diff mvc1 and mvc2 wahts is mean by servlet chaining?

1 Answers   SolutionNET,


i want documentation of text file splitter & merger of advanced java

1 Answers   Infosys,


can any one tell me how to learn good coding techniques

3 Answers  


How to add new JTabbed pane?

1 Answers  


difference of inheritance and interface

3 Answers  


If i learn Java, what kind of applications can i create that will help Banking, Retail, Hotel, Logistics industry.

2 Answers  


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

0 Answers  


Categories