How does the java interpreter calls a method before it's defined? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How does the java interpreter calls a method before it's defined?

In the last question in Method chapter, It called method "DoSomething " before that method is defined.

15th Sep 2016, 11:52 AM
MintyKitty
MintyKitty - avatar
2 Answers
+ 1
The process the code runs through the Jvm isn't the same as we read it. Its nonlinear in how it processes your code.
15th Sep 2016, 7:02 PM
Alex Wood
Alex Wood - avatar
0
thank you for replying. that explains it.
15th Sep 2016, 8:29 PM
MintyKitty
MintyKitty - avatar