Flashcards

Quick study sessions to strengthen memory and retain key concepts.

Flashcard Study

Java: Dependency Management

Front

How do you ensure build consistency in a multi-module project?

Centralize dependency versions in a single file. In a multi-module project, centralizing dependency versions in a single file,…

View Card →
Flashcard Study

Java: Dependency Management

Front

Why use a build tool for dependency management?

Automates and simplifies dependency resolution. Build tools like Maven and Gradle automate dependency management by resolving, downloading, and…

View Card →
Flashcard Study

Java: Dependency Management

Front

Why does a central repository in dependency management matter in this design?

Provides a source for automatic dependency retrieval. Central repositories like Maven Central store vast libraries of dependencies, allowing…

View Card →
Flashcard Study

Java: Dependency Management

Front

How can you manage transitive dependency versions in Gradle?

Use dependency constraints or resolution strategies. Gradle allows you to manage transitive dependency versions using dependency constraints or…

View Card →
Flashcard Study

Java: Dependency Management

Front

What happens if a required dependency is not in the local repository?

It's automatically downloaded from a remote repository. If a dependency isn't found locally, Maven or Gradle will check…

View Card →
Flashcard Study

Java: Dependency Management

Front

How do Maven and Gradle download dependencies?

They download from central repositories. Frame the concept in practical terms so you can explain it during interview…

View Card →
Flashcard Study

Java: Dependency Management

Front

What is 'dependency hell' and how can you avoid it?

Complex conflicts from incompatible dependencies. 'Dependency hell' occurs when different components of a project require incompatible versions of…

View Card →
Flashcard Study

Java: Dependency Management

Front

What is dependency conflict resolution in Maven?

Ensures consistent versions across dependencies. Dependency conflict resolution in Maven involves choosing a consistent version when multiple dependencies…

View Card →
Flashcard Study

Java: Dependency Management

Front

How do build tools handle transitive dependencies?

They automatically fetch dependencies of dependencies. Build tools like Maven and Gradle automatically resolve transitive dependencies, which are…

View Card →
Flashcard Study

Java: Dependency Management

Front

Why is centralized dependency declaration important in build tools?

Ensures consistency and simplifies updates. Centralized dependency declaration allows you to specify all project dependencies in a single…

View Card →