Quantcast
Channel: User Federico klez Culloca - Stack Overflow
Viewing all articles
Browse latest Browse all 493

Comment by Federico klez Culloca on How to understand how StackTraceElement works?

$
0
0
Because the stack gets populated at runtime. If you checked the stack trace in main how would the runtime know what will happen in the method chain? How would it know, for example, that method1 will absolutely for sure call method2 and the JVM will not crash before it gets called?

Viewing all articles
Browse latest Browse all 493

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>