wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Dynamic binding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Dynamic binding" Watch "Dynamic binding" New topic
Author

Dynamic binding

D. Rose
Ranch Hand

Joined: Apr 25, 2003
Posts: 215
I was asked follwoing
What parts in java are static bound and what are dynamic bound?
How can we force static binding in java?
Can anybody guide me on this?
Thanks
aadhi agathi
Ranch Hand

Joined: Apr 29, 2002
Posts: 263
Originally posted by r damle:
What parts in java are static bound and what are dynamic bound? How can we force static binding in java?

Any thing static is not dynamically bound.
all the method calls are dynamically bound. But the class and interface defintions are static bound. (Means i cant call a non-existant method).


Aadhi
SJ Adnams
Ranch Hand

Joined: Sep 28, 2001
Posts: 925
probably anything class marked as final also. The compiler will also do inlining for some cases.
google might give you a better answer...
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

r damle:
Howdy and welcome to the JavaRanch! We hope you’ll enjoy visiting the site on a regular basis. However, your name is not in keeping with our naming policy here at the ranch. Please change your display name to an appropriate name as outlined in the policy( The skinny of the policy: just use a real firstname, followed by a space and a real lastname ).
Thanks again and we hope to see you around the ranch!!
Jamie
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
I'm moving this to Java in General (beginner).


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
 
subject: Dynamic binding
 
Similar Threads
Question on inheritance from Dan's exam
difference between static and final method
what are the most common questions on Java job interviews?
type of binding
Shallow in static method ?