• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how dynamic binding works ?

 
naveen yadav
Ranch Hand
Posts: 384
Java MyEclipse IDE Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i want to explore more of how dynamic binding works at byte code level. like

how symbolic references are resolved ?

what is invokevirtual ?







 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
naveen yadav wrote:
i want to explore more of how dynamic binding works at byte code level. like

how symbolic references are resolved ?

That question is too vague to answer with other than, "As the JVM spec says the must be, and anything not specified is left up to the implementation."

what is invokevirtual ?

what is invokevirtual







 
naveen yadav
Ranch Hand
Posts: 384
Java MyEclipse IDE Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

do static binding exists in java or All method call binding happens through the dynamic binding ?
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
naveen yadav wrote:
do static binding exists in java or All method call binding happens through the dynamic binding ?


The only methods that are dynamically bound are those that are non-private, non-final, and non-static.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic