This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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: 9046
    
  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
 
GeeCON Prague 2014
 
subject: Dynamic binding