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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Dynamic binding" Watch "Dynamic binding" New topic

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?
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).

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!!
Marilyn de Queiroz

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

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