Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic binding

 
D. Rose
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 925
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9059
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm moving this to Java in General (beginner).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic