Java - Online Test - Maven - javasearch.buggybread.com


Share

Search Java Test Questions


 223 test questions in repository.




Java - Test Questions on 'Maven' - 19 questions found


What is Maven's order of inheritance?Maven
parent pom -> project pom -> settings -> CLI parameters
project pom -> parent pom -> settings -> CLI parameters
settings -> parent pom -> project pom -> CLI parameters
CLI parameters -> settings -> parent pom -> project pom

  maven

How do I determine which POM contains missing transitive dependency?Maven
mvn -A
mvn -M
mvn -R
mvn -X

  maven  maven transitive dependencies

What is the sequence in which Maven looks for the resources ?Maven
Remote-> Maven Central - > Local
Local -> Remote - Maven Central
Remote-> Local -> Maven Central
Maven Central -> Local -> Remote

  maven

POM stands for ... Maven
Project Object Model
Project Oriented Model
Prospective Object Model
Prospective Objective Model

  maven  pom

Which of the following is not type of Maven Repository ?Maven
Local
Remote
Maven Central
Maven Local

  maven  repositories

What is the default location of local repository ?Maven
~/.m2/repo
~/m2./home/repository
~/m2./repository
~/m2./home/repo

  maven  repositories  local repositories  m2

Which of the following is not type of Maven Plugin ?Maven
Build
Reporting
Remote
All are valid Maven Plugin types

  maven  maven plugins

Which of the following is not a dependency scope in Maven ?Maven
Compile
Test
System
Export

  maven  maven dependencies

What is a project's fully qualified artifact name?Maven
::
:
::
:

  maven  artifact

Which of the following is dependency exclusion ?Maven
A doesn't depend on C and then A marks C as excluded.
A Depends on B and B depends on C and then A can mark B as excluded.
A and B depends on C and then they can mark C as excluded.
A depends upon B and B depends upon C then A marks C as excluded.

  maven  dependency exclusion

Which of the following is not the dependency scope in Maven ?Maven
Compile
Runtime
Debug
Test

  maven  maven dependencies scope

Which of following uniquely identify the artifact or dependency in Maven ?Maven
Artifact Id
Group Id
Version
All of the above

  maven

Which of following is not type of Maven Repository ?Maven
Local
Remote
Central
State

  maven   maven repository

Which of the following statement is not true ?Core Java
x==y means they are pointing to the same object
x==y means that they hold same information
x.equals(y) means they are pointing to the same object
x.equals(y) means that they hold same information

  

When String literals are compared using ==, they always returns true if the string values are same because .. Core Java
of overridden compareTo method
of overridden compare method
of String Pool
== means that the object contents are equal

  

What will be the output of following ?

String str1 = new String("String1");
String str2 = new String("String1");
System.out.print(str1 == str2);
System.out.print(str1.equals(str2));
str1 = str2;
System.out.print(str1 == str2);
Core Java
falsetruetrue
truetruetrue
truetruefalse
falsetruefalse

  equals  object equality

What will be the output of following code ?

String str1 = "String1";
String str2 = "String1";
System.out.print(str1 == str2);
System.out.print(str1.equals(str2));
str1 = str2;
System.out.print(str1 == str2);
Core Java
falsetruetrue
falsefalsetrue
truetruetrue
falsefalsefalse

  equals  object equality  string pool

What will be the output of following code ?

String str1 = "String1";
String str2 = "String2";
str1.concat("String3");
System.out.print(str1);
System.out.print(str2);
Core Java
String1String2
String1String3String3
String1String3String1String3
String1String1

  

What will be the output of following code ?

String str1 = "String1";
String str2 = "String2";
str1=str1.concat("String3");
System.out.print(str1);
System.out.print(str2);
Core Java
String1String2
String1String3String2
String1String2String3
String1Stringg3String1

  







comments powered by Disqus