java - Interface implicit mechanism -


in java example thread can created using either implementing runnable or extending thread class. understand extending class implementing interface how jvm decide attach it. such implementation purely implicit mechanism or missing here.

edit: same concept while create objects map map=new hashmap(), how maintain containing hashmap object. info stored in object or reference. how jvm looks @ it?

is such implementation purely implicit mechanism or missing here.

a thread not implicitly created act of implementing runnable. instance of such object must explicitly passed thread constructor:

new thread(myrunnable); 

clearly, thread instance break no sweat figuring out runnable call.


Comments

Popular posts from this blog

c++ - Linked List error when inserting for the last time -

java - activate/deactivate sonar maven plugin by profile? -

java - What is the difference between String. and String.this. ? -