Tuesday, May 2, 2023

General Computer Programming Concepts

 What is difference between imperative and declarative programming?

  • Imperative Programming is the programming technique where we define exact steps to reach an end result.
  • Declarative Programming is the programming technique where we define what end result we want.
What is AOT and JIT compilation and what are its advantages and disadvantages?
  • AOT Compilation refers to Ahead Of Time compilation and occurs during the build phase 
  • JIT Compilation refers to Just in Time compilations and occurs during run phase
  • Advantages of AOT
    • The start-up time for the application becomes very less via this approach of compilation but yeah build time is comparatively more
    • Memory footprint of the application becomes very low as JIT compiler and related components are excluded.
    • JVM is not needed as it creates standalone executables
    • The code is platform independent
  • Disadvantages of AOT
    • The performance is less as compared to JIT as in JIT code is optimized dynamically during run time

No comments:

Post a Comment

SpringBoot Application Event Listeners

When a spring boot application starts few events occurs in below order ApplicationStartingEvent ApplicationEnvironmentPreparedEvent Applicat...