Bird
0
0

Which tag inside pom.xml specifies the version of a dependency?

easy📝 Conceptual Q2 of 15
Spring Boot - Fundamentals
Which tag inside pom.xml specifies the version of a dependency?
A<code><version></code>
B<code><scope></code>
C<code><artifactId></code>
D<code><groupId></code>
Step-by-Step Solution
Solution:
  1. Step 1: Identify the tag that defines dependency version

    The <version> tag specifies which version of the library to use.
  2. Step 2: Understand other tags' roles

    <groupId> identifies the organization, <artifactId> the library name, and <scope> the usage context.
  3. Final Answer:

    <version> -> Option A
  4. Quick Check:

    Version tag = specifies dependency version [OK]
Quick Trick: Version tag sets dependency version number [OK]
Common Mistakes:
  • Confusing <scope> with version
  • Mixing groupId and artifactId with version
  • Omitting the version tag and expecting defaults

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes