Search Interview Questions
| 3180 questions in repository.|
There are more than 200 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Java - Interview Questions and Answers|
This is the default scope. Compile dependencies are available in all classpaths of a project. Moreover, these dependencies are propagated to dependent projects.
This is much like compile, but indicates you expect the JDK or a container to provide the dependency at runtime.
This scope indicates that the dependency is not required for compilation, but is for execution.
This scope indicates that the dependency is is only available for the test compilation and execution phases. This scope is not transitive.
This scope is similar to provided except that you have to provide the JAR which contains it explicitly.
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve maven maven dependency scopes|
|What is a transitive dependency ? Can we override Transitive Dependency version and If Yes, how ?|
|How do you resolve Maven Dependencies issue while upgrading dependencies versions ?|
|What would you do if you have to add a jar to the project using Maven ?|
|How can we see Dependencies for the project and where exactly they are defined ?|
|Which of the following is not a dependency scope in Maven ?|