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 та симуляторів співбесід.

Почни безкоштовно