JVM Classloading Phases..
?? Saral Saxena ??????
?11K+ Followers | Linkedin Top Voice || Associate Director || 15+ Years in Java, Microservices, Kafka, Spring Boot, Cloud Technologies (AWS, GCP) | Agile , K8s ,DevOps & CI/CD Expert
- EDIT – The programmer writes the program (preferably on a notepad) and saves it as a ‘.java’ file, which is then further used for compilation, by the compiler.
- COMPILE – The compiler here takes the ‘.java’ file, compiles it and looks for any possible errors in the scope of the program. If it finds any error, it reports them to the programmer. If no error is there, then the program is converted into the bytecode and saved as a ‘.class’ file.
- LOAD – Now the major purpose of the component called ‘Class Loader’ is to load the byte code in the JVM. It doesn’t execute the code yet, but just loads it into the JVM’s memory.
- VERIFY – After loading the code, the JVM’s subpart called ‘Byte Code verifier’ checks the bytecode and verifies it for its authenticity. It also checks if the bytecode has any such code which might lead to some malicious outcome. This component of the JVM ensures security.
- EXECUTE – The next component is the Execution Engine. The execution engine interprets the code line by line using the Just In Time (JIT) compiler. The JIT compiler does the execution pretty fast but consumes extra cache memory.
Passionate about Agile, Innovation, and Driving Business Excellence!
7 年Nicely explained . Thanks for sharing
Architect | Serverless | Data Engineering | BI | Microservices | Devops | AWS | Mobile | Web | ETL | JLPT N5
7 年Nice information
Spring boot Micro-services Developer at IBM
7 年Thank you. Nice info.
Certified AWS( developer- associate , CLF-01) with Java ,Springboot,Hibernate ,ReactJs Full Stack developer
7 年nice explanation with simple steps
?11K+ Followers | Linkedin Top Voice || Associate Director || 15+ Years in Java, Microservices, Kafka, Spring Boot, Cloud Technologies (AWS, GCP) | Agile , K8s ,DevOps & CI/CD Expert
8 年MohammadReza Khatami Thanks for adding that also.