Returning a stack trace

  • 3
  • Locked
The way a stack works is unfair and harsh. But sometimes it's so useful! Remember that the last function called is the first function to end. Let's practice and see what happens: we need to write five methods that call each other. Each method must return its stack trace.
You can't complete this task, because you're not signed in.
Comments (1)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Jaisingh Level 13, Hyderabad, India
3 October 2018, 00:47
don't you think that the when function return value then it will have same data type to receive that data, but here there is no such thing when method 4 returns a getstackTrace() then it has to be received by the calling method what do you think. please do you help me..!!