Maven - Interview Questions and Answers for 'Mps' | Search Java Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com
Share

Search Interview Questions


 2787 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.
Label / Company      Label / Company / Text

   



Maven - Interview Questions and Answers for 'Mps' - 7 question(s) found - Order By Newest

  Q1. What is Maven ?Maven2016-12-19 10:53:13

Ans. Maven is a build automation tool used primarily for Java projects.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     maven  build     Defence Research & Development Organisation (DRDO)  MPS  Infosys  Indra  InterGlobe Technologies  HSBC Holdings      basic        frequent


Related Questions

  What is a transitive dependency ? Can we override Transitive Dependency version and If Yes, how ?
  What is a cyclic dependency ?
  Which of the following is dependency exclusion ?
  Which of the following is not a build tool ?
 How do you resolve Maven Dependencies issue while upgrading dependencies versions ?
  What is Maven's order of inheritance?
  What is a Mojo?
  Where do we configure repositories in Maven ?
  What are different type of repositories in Maven ?
  How does Maven looks for a resource ?


 Q2. Which method needs to be implemented if a class is implementing comparable interface ?Core Java
a. comp
b. compare
c. compareTo
d. compareEquals

Ans.c. compareTo

 Q3. What is the relationship between Vehicle and Engine in this example ?

public class Vehicle {
   Enginer engine;
   public void move(){
      engine = new Engine();
      engine.start();
   }
}
Core Java
a. Composition ( Vehicle has a Engine )
b. Composition ( Engine has a Vehicle )
c. Inheritance ( Vehicle is a Engine )
d. Inheritance ( Engine is a Vehicle )

Ans.a. Composition ( Vehicle has a Engine )

 Q4. What is the relationship between Car and Vehicle in the following code ?

public class Car extends Vehicle{
   Engine engine;   
   
   public static void main(String[] args){
      Vehicle vehicle = new Car();
      car.move();
   }   

   public void move(){
      engine = new Engine();
      engine.start();
   }
}
Core Java
a. Composition ( Vehicle has a Car )
b. Composition ( Car has a Vehicle )
c. Inheritance ( Vehicle is a Car )
d. Inheritance ( Car is a Vehicle )

Ans.d. Inheritance ( Car is a Vehicle )

 Q5. What is the problem with the following code ?

public class Car extends Vehicle{
   Vehicle vehicle;
   
   Car(){
      super();
      this.vehicle = new Vehicle();
   }
}
Core Java
a. There is an Inheritance as well as Composition relationship between Vehicle and Car which is not permitted
b. We cannot initialize the parent class instance within the constructor
c. Call to super is illegal
d. There is no problem

Ans.d. There is no problem

 Q6. Which of the following wildcard is used to import multiple packages at once ?Core Java
a. .
b. ?
c. *
d. &

Ans.c. *

 Q7. We cannot override compareTo method for ...Core Java
a. Abstract Class
b. Final Class
c. Enum
d. Interfaces

Ans.c. Enum



Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner



comments powered by Disqus
 

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked:
         

X Close this

X Close this

Help Us Improve.
Please share your
interview experience.

Company Name:   


Questions Asked: