All fields

“Build Tools: Maven & Gradle” in Information Technology

29 questions across 1 technology.

Information Technology

29 questions in 1 technology

#QuestionTechnologyTopicLevel
1What problem do build tools like Maven and Gradle solve for a Java project? Java › Build Tools: Maven & GradleJavaBuild Tools: Maven & GradleBeginner
2How does Gradle's build script (build.gradle / build.gradle.kts) differ structurally from Maven's declarative XML pom.xml? Java › Build Tools: Maven & GradleJavaBuild Tools: Maven & GradleIntermediate
3How does Gradle's incremental build and build cache mechanism achieve significantly faster rebuild times compared to Maven's default behavior? Java › Build Tools: Maven & GradleJavaBuild Tools: Maven & GradleAdvanced
4How would you write a custom Maven plugin or Gradle task to perform project-specific build automation not covered by existing plugins? Java › Build Tools: Maven & GradleJavaBuild Tools: Maven & GradleAdvanced
5How would you configure a Maven or Gradle build to produce a reproducible build (bit-for-bit identical output given the same source), and why does this matter for supply chain security? Java › Build Tools: Maven & GradleJavaBuild Tools: Maven & GradleAdvanced
6How would you configure a Maven or Gradle build to produce a shaded/fat JAR containing all dependencies bundled into a single executable JAR file? Java › Build Tools: Maven & GradleJavaBuild Tools: Maven & GradleAdvanced
7What is the Maven build lifecycle, and what do the common phases (validate, compile, test, package, install, deploy) each do? Java › Build Tools: Maven & GradleJavaBuild Tools: Maven & GradleIntermediate
8How do you manage different configurations for different environments (development, staging, production) using Maven profiles or Gradle's equivalent mechanisms? Java › Build Tools: Maven & GradleJavaBuild Tools: Maven & GradleIntermediate
9How would you configure a multi-module Maven or Gradle project, and what benefits does modularizing a large codebase this way provide? Java › Build Tools: Maven & GradleJavaBuild Tools: Maven & GradleAdvanced
10What is the standard Maven directory layout, and why does following this convention matter? Java › Build Tools: Maven & GradleJavaBuild Tools: Maven & GradleBeginner
11What is the difference between Maven's <dependencies> scope values (compile, provided, runtime, test) and how do they affect what's included in the final packaged artifact? Java › Build Tools: Maven & GradleJavaBuild Tools: Maven & GradleIntermediate
12How do you resolve a dependency version conflict manually in Maven using exclusions, and when would this be necessary despite the automatic nearest-wins resolution? Java › Build Tools: Maven & GradleJavaBuild Tools: Maven & GradleIntermediate
13What is a Maven BOM (Bill of Materials), and how does it help manage consistent dependency versions across a multi-module project or organization? Java › Build Tools: Maven & GradleJavaBuild Tools: Maven & GradleIntermediate
14How do you configure the Maven Compiler Plugin to target a specific Java language version, and what's the difference between source, target, and release configuration? Java › Build Tools: Maven & GradleJavaBuild Tools: Maven & GradleIntermediate
15How does Maven's dependency resolution algorithm handle transitive dependency version conflicts, and what is the "nearest definition wins" rule? Java › Build Tools: Maven & GradleJavaBuild Tools: Maven & GradleAdvanced
16What is the Java Platform Module System (JPMS, introduced in Java 9), and what core problem does it aim to solve compared to the traditional classpath-based approach? Java › Java Platform Module System (JPMS)JavaJava Platform Module System (JPMS)Beginner
17How do you name a Java module, and what naming convention is recommended to avoid conflicts with other modules? Java › Java Platform Module System (JPMS)JavaJava Platform Module System (JPMS)Beginner
18What is the difference between compile-time annotation processing (via javax.annotation.processing.Processor) and runtime reflection-based annotation reading? Java › AnnotationsJavaAnnotationsIntermediate
19What causes a ClassNotFoundException versus a NoClassDefFoundError, and how do you distinguish and diagnose each? Java › Class Loading & Bytecode VerificationJavaClass Loading & Bytecode VerificationIntermediate
20How do default methods (introduced in Java 8) let an interface provide a method implementation, and what problem were they specifically introduced to solve? Java › Interfaces & Abstract ClassesJavaInterfaces & Abstract ClassesIntermediate
21What is an automatic module, and how does placing a plain (non-modularized) JAR on the module path (rather than the classpath) differ from leaving it on the classpath as part of the unnamed module? Java › Java Platform Module System (JPMS)JavaJava Platform Module System (JPMS)Intermediate
22How would you write and run a basic 'Hello World' JPMS-modularized application from scratch, including the module-info.java, directory structure, and the specific javac/java command-line invocations needed? Java › Java Platform Module System (JPMS)JavaJava Platform Module System (JPMS)Intermediate
23What are the practical trade-offs and adoption challenges that have led many real-world Java projects to NOT fully adopt JPMS modularization even years after its introduction, despite its stated benefits? Java › Java Platform Module System (JPMS)JavaJava Platform Module System (JPMS)Intermediate
24How does Java's annotation processing API (javax.annotation.processing) enable compile-time code generation frameworks like Lombok or Dagger, and what are its key limitations? Java › AnnotationsJavaAnnotationsAdvanced
25How would you diagnose and resolve a 'split package' problem when using JPMS, where the same package is defined across two different modules on the module path? Java › Class Loading & Bytecode VerificationJavaClass Loading & Bytecode VerificationAdvanced
26How would you convert between the legacy java.util.Date/Calendar classes and the modern java.time API when working with older libraries or APIs that still require the legacy types? Java › Java Date & Time API (java.time)JavaJava Date & Time API (java.time)Advanced
27What is the difference between 'requires' and 'requires transitive', and how does transitive dependency propagation work in the module system? Java › Java Platform Module System (JPMS)JavaJava Platform Module System (JPMS)Advanced
28How does the 'unnamed module' work, and how does JPMS maintain backward compatibility with the vast ecosystem of pre-existing JARs that were never designed with modules in mind? Java › Java Platform Module System (JPMS)JavaJava Platform Module System (JPMS)Advanced
29How would you use the 'requires static' directive to declare an optional, compile-time-only dependency that isn't required to be present at runtime? Java › Java Platform Module System (JPMS)JavaJava Platform Module System (JPMS)Advanced