Search Interview Questions | ![]() ![]() Click here and help us by providing the answer. ![]() Click Correct / Improve and please let us know. |
|
| ||||
Interview Questions and Answers | ||||
| ||||
Ans. Compile This is the default scope. Compile dependencies are available in all classpaths of a project. Moreover, these dependencies are propagated to dependent projects. Provided This is much like compile, but indicates you expect the JDK or a container to provide the dependency at runtime. Runtime This scope indicates that the dependency is not required for compilation, but is for execution. Test This scope indicates that the dependency is is only available for the test compilation and execution phases. This scope is not transitive. System This scope is similar to provided except that you have to provide the JAR which contains it explicitly. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
![]() | ||||
![]() | ||||
![]() | ||||
![]() | ||||
![]() | ||||
![]() | ||||