What happened internally when we execute class file java
When we execute the class file using the "java <class file >" command internally below operations is performed.
- Start JVM
- Create and Start the main thread: JVM will create a main thread and start that thread.
- Locate the class file
- Load the class file
- Execute the main method
- Unload the class
- terminated main thread
- Shutdown JVM
Comments
Post a Comment