0

JVM has an inbuilt try and catch block and in catch block there is a pointer of "Throwable class". In try block what code does JVM write to form string array and to call the main and pass the formed string array?

Goku
  • 81
  • 6
  • I have no idea what you mean, but [this answer](https://stackoverflow.com/a/24558676/3448419) will probably help. – apangin Jun 24 '18 at 10:53
  • what i mean is that main function will not get called automatically, just like other function gets called by writing some code so there will be some code which JVM writes to call main function and i want to know that code which JVM writes to call main().. – Goku Jun 24 '18 at 15:14
  • 1
    So the link above should answer your questoin. – apangin Jun 24 '18 at 17:02
  • no its not the answer which i except.. – Goku Jun 24 '18 at 18:18
  • Then clarify your expectations from the answer (by editing the question). – apangin Jun 24 '18 at 18:27
  • 3
    [Here](http://hg.openjdk.java.net/jdk/jdk10/file/b09e56145e11/src/java.base/share/native/libjli/java.c#l388) is the exact function that launches Java `main` method. – apangin Jun 24 '18 at 18:36
  • cool that helps me alot :) – Goku Jun 28 '18 at 15:16

0 Answers0