GraalVM Native Images
GraalVM native images for fast startup, native compilation, AOT, reflection hints, limitations
1What is GraalVM Native Image?
What is GraalVM Native Image?
คำตอบ
GraalVM Native Image is a technology that compiles Java applications into standalone native executables via AOT (Ahead-of-Time) compilation. Unlike traditional JVM which uses JIT (Just-In-Time) compilation at runtime, Native Image analyzes and compiles all code ahead of time. This enables near-instant startup (milliseconds), reduced memory footprint, and no JVM dependency for execution.
2What is the main difference between AOT and JIT compilation?
What is the main difference between AOT and JIT compilation?
คำตอบ
AOT (Ahead-of-Time) compilation analyzes and compiles all code before execution, producing an optimized native executable. JIT (Just-In-Time) compilation compiles Java bytecode to machine code progressively during execution. AOT provides instant startup but requires longer build time, while JIT starts slowly but optimizes code over time based on actual usage patterns.
3Which Maven plugin to use for building a Spring Boot native image?
Which Maven plugin to use for building a Spring Boot native image?
คำตอบ
The native-maven-plugin from org.graalvm.buildtools group is the official plugin for building native images with Maven. Spring Boot starter parent activates it automatically in the 'native' profile. Simply declare the plugin in the plugins section and run mvn -Pnative spring-boot:build-image or mvn -Pnative package depending on the desired mode.
How to activate the Maven profile for Spring Boot native compilation?
What is the 'closed-world assumption' principle in GraalVM Native Image?
+17 คำถามสัมภาษณ์
หัวข้อสัมภาษณ์ Spring Boot อื่นๆ
Spring Core - IoC & DI
Spring Boot Auto-Configuration
Spring Boot Starters
Application Properties & YAML
Logging with SLF4J & Logback
Spring Boot DevTools
Spring MVC Basics
Spring REST Controllers
Request & Response Handling
Exception Handling
Bean Validation
Spring Data JPA Basics
JPA Entities & Relationships
JPA Queries
Spring Data Repositories
Spring Security Basics
Spring Boot Actuator
Unit Testing with JUnit & Mockito
Spring Boot Testing
Profiles & Environment
RestTemplate & WebClient
Async & Scheduling
Caching with Spring
Spring WebFlux (Reactive)
Spring Transactions
Advanced Authentication & Authorization
JWT & Stateless Security
OAuth2 & Authorization Server
Spring Boot & Docker
Microservices with Spring
Spring Cloud Config
Performance Optimization
เชี่ยวชาญ Spring Boot สำหรับการสัมภาษณ์ครั้งถัดไป
เข้าถึงคำถามทั้งหมด flashcards แบบทดสอบเทคนิค แบบฝึกหัด code review และตัวจำลองสัมภาษณ์
เริ่มใช้ฟรี