# GraalVM Native Images (Spring Boot) > GraalVM Native Images für schnellen Start, native Kompilierung, AOT, Reflection Hints, Einschränkungen - 20 Interview-Fragen - Senior - [Interview-Fragen: Spring Boot](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen.md) ## 1. Was ist GraalVM Native Image? **Antwort** GraalVM Native Image ist eine Technologie, die Java-Anwendungen mittels AOT-Kompilierung (Ahead-of-Time) in eigenständige native ausführbare Dateien kompiliert. Anders als die klassische JVM, die zur Laufzeit JIT-Kompilierung (Just-In-Time) verwendet, analysiert und kompiliert Native Image den gesamten Code im Voraus. Das ermöglicht einen nahezu sofortigen Start (Millisekunden), einen reduzierten Speicherbedarf und keine JVM-Abhängigkeit für die Ausführung. ## 2. Was ist der Hauptunterschied zwischen AOT- und JIT-Kompilierung? **Antwort** Die AOT-Kompilierung (Ahead-of-Time) analysiert und kompiliert den gesamten Code vor der Ausführung und erzeugt eine optimierte native ausführbare Datei. Die JIT-Kompilierung (Just-In-Time) kompiliert Java-Bytecode während der Ausführung schrittweise in Maschinencode. AOT bietet einen sofortigen Start, erfordert jedoch eine längere Build-Zeit, während JIT langsam startet, den Code aber im Laufe der Zeit basierend auf den tatsächlichen Nutzungsmustern optimiert. ## 3. Welches Maven-Plugin sollte zum Erstellen eines Spring Boot Native Image verwendet werden? **Antwort** Das native-maven-plugin aus der Gruppe org.graalvm.buildtools ist das offizielle Plugin zum Erstellen von Native Images mit Maven. Spring Boot Starter Parent aktiviert es automatisch im Profil 'native'. Es genügt, das Plugin im plugins-Abschnitt zu deklarieren und je nach gewünschtem Modus mvn -Pnative spring-boot:build-image oder mvn -Pnative package auszuführen. ## 17 weitere Fragen verfügbar - Wie aktiviert man das Maven-Profil für die native Kompilierung von Spring Boot? - Was ist das Prinzip der 'closed-world assumption' in GraalVM Native Image? Kostenlos registrieren: https://sharpskill.dev/de/login ## Weitere Spring Boot-Interviewthemen - [Spring Core - IoC & DI](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-core-ioc-di.md): 22 Fragen, Junior - [Spring Boot Auto-Configuration](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-boot-auto-configuration.md): 20 Fragen, Junior - [Spring Boot Starters](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-boot-starters.md): 18 Fragen, Junior - [Application Properties & YAML](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/application-properties-yml.md): 16 Fragen, Junior - [Logging mit SLF4J und Logback](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/logging.md): 20 Fragen, Junior - [Spring Boot DevTools](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-boot-devtools.md): 15 Fragen, Junior - [Spring MVC Basics](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-mvc-basics.md): 20 Fragen, Mid-Level - [Spring REST Controllers](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-rest-controllers.md): 20 Fragen, Mid-Level - [Request & Response Handling](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/request-response-handling.md): 20 Fragen, Mid-Level - [Ausnahmebehandlung](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/exception-handling.md): 25 Fragen, Mid-Level - [Bean Validation](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/bean-validation.md): 25 Fragen, Mid-Level - [Spring Data JPA Grundlagen](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-data-jpa-basics.md): 25 Fragen, Mid-Level - [JPA-Entitäten und Beziehungen](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/jpa-entities-relationships.md): 30 Fragen, Mid-Level - [JPA-Abfragen](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/jpa-queries.md): 30 Fragen, Mid-Level - [Spring Data Repositories](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-data-repositories.md): 25 Fragen, Mid-Level - [Spring Security Grundlagen](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-security-basics.md): 25 Fragen, Mid-Level - [Spring Boot Actuator](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-boot-actuator.md): 20 Fragen, Mid-Level - [Unit-Tests mit JUnit & Mockito](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/testing-junit-mockito.md): 30 Fragen, Mid-Level - [Spring Boot Testing](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-boot-testing.md): 30 Fragen, Mid-Level - [Profiles und Environment](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/profiles-environment.md): 20 Fragen, Mid-Level - [RestTemplate und WebClient](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/resttemplate-webclient.md): 24 Fragen, Mid-Level - [Async & Scheduling](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/async-scheduling.md): 25 Fragen, Mid-Level - [Caching mit Spring](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/caching.md): 25 Fragen, Mid-Level - [Spring WebFlux (Reactive)](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-webflux.md): 25 Fragen, Mid-Level - [Spring-Transaktionen](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/transactions.md): 30 Fragen, Senior - [Erweiterte Authentifizierung und Autorisierung](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/authentication-authorization.md): 30 Fragen, Senior - [JWT & Stateless-Sicherheit](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/jwt-stateless-security.md): 20 Fragen, Senior - [OAuth2 & Authorization Server](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/oauth2-authorization-server.md): 20 Fragen, Senior - [Spring Boot und Docker](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-boot-docker.md): 19 Fragen, Senior - [Microservices mit Spring](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/microservices-basics.md): 25 Fragen, Senior - [Spring Cloud Config](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/spring-cloud-config.md): 19 Fragen, Senior - [Performance-Optimierung](https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/performance-optimization.md): 30 Fragen, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/de/technologies/spring-boot/interviewfragen/graalvm-native-images