Multiple choice technology architecture

How many targets can we create in the build.xml?

  1. 1

  2. 10

  3. 5

  4. Any number of targets

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

An Ant build.xml file can contain any number of target tags - there's no fixed limit. Each target represents a named sequence of tasks that can be executed independently or as dependencies of other targets. Common practice is to have multiple targets like init, compile, test, deploy, clean, etc.