Spring Boot

GraalVM Native Images

GraalVM native images for fast startup, native compilation, AOT, reflection hints, limitations

20 คำถามสัมภาษณ์·
Senior
1

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.

2

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.

3

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.

4

How to activate the Maven profile for Spring Boot native compilation?

5

What is the 'closed-world assumption' principle in GraalVM Native Image?

+17 คำถามสัมภาษณ์

หัวข้อสัมภาษณ์ Spring Boot อื่นๆ

Spring Core - IoC & DI

Junior
22 คำถาม

Spring Boot Auto-Configuration

Junior
20 คำถาม

Spring Boot Starters

Junior
18 คำถาม

Application Properties & YAML

Junior
16 คำถาม

Logging with SLF4J & Logback

Junior
20 คำถาม

Spring Boot DevTools

Junior
15 คำถาม

Spring MVC Basics

Mid-Level
20 คำถาม

Spring REST Controllers

Mid-Level
20 คำถาม

Request & Response Handling

Mid-Level
20 คำถาม

Exception Handling

Mid-Level
25 คำถาม

Bean Validation

Mid-Level
25 คำถาม

Spring Data JPA Basics

Mid-Level
25 คำถาม

JPA Entities & Relationships

Mid-Level
30 คำถาม

JPA Queries

Mid-Level
30 คำถาม

Spring Data Repositories

Mid-Level
25 คำถาม

Spring Security Basics

Mid-Level
25 คำถาม

Spring Boot Actuator

Mid-Level
20 คำถาม

Unit Testing with JUnit & Mockito

Mid-Level
30 คำถาม

Spring Boot Testing

Mid-Level
30 คำถาม

Profiles & Environment

Mid-Level
20 คำถาม

RestTemplate & WebClient

Mid-Level
24 คำถาม

Async & Scheduling

Mid-Level
25 คำถาม

Caching with Spring

Mid-Level
25 คำถาม

Spring WebFlux (Reactive)

Mid-Level
25 คำถาม

Spring Transactions

Senior
30 คำถาม

Advanced Authentication & Authorization

Senior
30 คำถาม

JWT & Stateless Security

Senior
20 คำถาม

OAuth2 & Authorization Server

Senior
20 คำถาม

Spring Boot & Docker

Senior
19 คำถาม

Microservices with Spring

Senior
25 คำถาม

Spring Cloud Config

Senior
19 คำถาม

Performance Optimization

Senior
30 คำถาม

เชี่ยวชาญ Spring Boot สำหรับการสัมภาษณ์ครั้งถัดไป

เข้าถึงคำถามทั้งหมด flashcards แบบทดสอบเทคนิค แบบฝึกหัด code review และตัวจำลองสัมภาษณ์

เริ่มใช้ฟรี