Return to Coding in Java with artEoz – exercises

Functions call and call stack visualization

  1. Make sure you have the geometrie resourceIf necessary, see the Resources import webpage.
  2. Open a new plain code frame NouveauProgramme and enter the following java code:
  1. Select the Unreferenced objects in the options menu, play with the arrow buttons to run the code step-by-step.
    What is displayed? key_48
  2. Notice than one of the variables is named this. This variable always store the pointer to the current instance. Check its evolving.
  3. Add the following statements. Then study the evolution of the call stack, back in step-by-step mode.
  1. Imagine some others functions calls…

Back to java exercises list