Apache Kafka Interview Questions And Answers 2019

Apache Kafka Interview Questions And Answers 2019. Here Coding compiler sharing a list of 30 Kafka interview questions for experienced. Thes interview questions on Kafka were asked in various interviews conducted by top MNC companies and prepared by expert Kafka professionals. We are sure that this list of Apache Kafka questions will help you to crack your next Kafka job interview. All the best for your future and happy learning.

Continue reading “Apache Kafka Interview Questions And Answers 2019”

Couchbase Interview Questions And Answers For Experienced

Couchbase Interview Questions And Answers 2018. Here Coding compiler sharing a list of 25 interview questions on Couchbase. These Couchbase questions were asked in various Couchbase interviews by top MNC companies and prepared by Couchbase experts. This list of Couchbase server interview questions will help you to crack your next Couchbase job interview. All the best for your future and happy learning.

Continue reading “Couchbase Interview Questions And Answers For Experienced”

IBM Bluemix Interview Questions And Answers 2019

IBM Bluemix Interview Questions And Answers 2019. Here Coding Compiler sharing a list of 25 interview questions on IBM Bluemix. These Bluemix  IBM Cloud interview questions answers are prepared by IBM Bluemix Cloud experts. We hope that these questions will help you to crack your next IBM Cloud job interview. All the best for your future and happy learning.

Continue reading “IBM Bluemix Interview Questions And Answers 2019”

Cloud Foundry Interview Questions And Answers 2019

Cloud Foundry Interview Questions And Answers 2019. Here Coding compiler sharing a list of 48 interview questions on Cloud Foundry for experienced. These Cloud Foundry questions were asked in various interviews conducted by top MNC companies and prepared by Cloud Foundry experts. We are sure that these Pivotal Cloud Foundry interview questions answers will help you to crack your next Cloud Foundry job interview. All the best for your future and happy learning.

Continue reading “Cloud Foundry Interview Questions And Answers 2019”

AWS Sample Resumes – AWS Administrator Resume

AWS Sample Resumes 2018AWS Administrator ResumeAmazon Web Services Sample Resume. Here Coding compiler sharing a very useful AWS Resume Sample for AWS professionals. This is the original AWS Administrator sample resume contains real-time Amazon web services projects. You can use this AWS resume as a reference and build your own resume and get shortlisted for your next AWS job interview. All the best for your future and happy learning.

Continue reading “AWS Sample Resumes – AWS Administrator Resume”

Google Machine Learning Interview Questions And Answers 2019

Google Machine Learning Interview Questions And Answers 2019. Here Coding compiler sharing a list of 25 interview questions on Google machine learning. These Google ML interview questions were asked in various interviews by top MNC companies and prepared by expert Machine learning professionals. We hope that these Machine learning interview questions will help you to crack your next Google Machine Learning job interview. All the best for your future and happy machine learning.

Continue reading “Google Machine Learning Interview Questions And Answers 2019”

FREE Machine Learning Crash Course – Learn With Google AI

FREE Machine Learning Crash Course – Learn With Google AI. Google has introduced a new “Learn with Google AI”, course, which will bring machine learning skills and concepts to all users. The course is free and available to all users.  Google says the set of educational resources in this course have been developed by machine learning experts at the company.

Google Machine Learning Course

Google says the idea of this machine learning course is to encourage people to learn about machine learning concepts, develop skills in the area, and apply artificial intelligence to real-world problems.

The new Machine Learning Crash Course will give a quick introduction to practical ML concepts using high-level TensorFlow (TF) APIs. TensorFlow is Google’s open source library for machine learning tools and can be accessed by anyone to build AI, ML frameworks suited to their tasks, problems.

Machine Learning For Artificial Intelligence

Machine Learning allows computers to learn, understand and recognize the data, without being explicitly programmed to do so. Machine Learning is the building block for artificial intelligence and is what powers self-driving cars, image recognition, etc.

You Might Be Interested In – Python Tutorial For Beginners

Users will be able to learn about key ML algorithms and frameworks from Google’s new course It will also include videos from ML experts at Google, interactive visualizations illustrating ML concepts and coding exercises using TensorFlow APIs, says the company.

Learn Machine Learning With Google AI

“We believe it’s important that the development of AI reflects as diverse a range of human perspectives and needs as possible. So, Google AI is making it easier for everyone to learn ML by providing a huge range of free, in-depth educational content.

This is for everyone — from deep ML experts looking for advanced developer tutorials and materials, to curious people who are ready to try to learn what ML is in the first place,” Zuri Kemp, Program Manager for Google’s machine learning education said in a press statement.

You Might Be Interested In – What is Python used for?

How to enroll for Google Machine Learning course? What are the requirements?

Those who are interested can access the Google Machine Learning course at developers.google.com/machine-learning/crash-course/.  While the course is free for all, there are some pre-requisites before taking up an understanding of how to code for machine learning.

Related Article: Advantages of Python

Google’s course page says the user must have a mastery of introductory level of algebra, and this includes variables and coefficients, linear equations, graphs of functions, and histograms. Also, familiarity with advanced math concepts such as logarithms and derivatives will be helpful, though it is not compulsory.

Additionally, a knowledge of programming basics and some experience coding in Python are also required. Google says those enrolling should comfortable reading and writing Python code since the exercises in the course are coded in the same programming language. The course will have lectures from Google’s AI experts, along with exercises and access to some material as well.

The Google course on Machine Learning was originally built for the company’s own employees and so far over 18,000 employees in the company have enrolled in this MLCC course. Google says that seeing the program’s success in-house is what inspired them to make it available to everyone. Source: Indian Express.

Enroll Now In Google Machine Learning Course.!

Jenkins Training Course Online With Live Projects 2019

Coding compiler’s Jenkins Training 2019 – In this Jenkins course, you will learn about how to set up the Jenkins continuous integration (CI) tool. You will also learn how to use  INTEGRATING Jenkins with other CI and CD tools, ADMINISTERING Jenkins instances, Learn about enterprise functionality to enhance Jenkins, and Jenkins to automate the process of build and deployment. Enroll Now For FREE Demo!

Jenkins Training – Key Features

  • Live Instructor-Led Classes – You can attend Live classes from your remote location.
  • Flexible Timings – Learn from anywhere and anytime as you wish.
  • Learn From Industry Experts – You can learn from the most experienced trainers in the industry.
  • Lifetime Access – You can get lifetime access to your recorded sessions.
  • Training Material – You will get the training material like PPTs, Docs, PDF, and interview questions to crack the interview.
  • Real-time Project – At the end of training you will get the real-time project.

Jenkins Online Training Description

Jenkins Training
Open source Jenkins is the Open source.
Pricing Jenkins if free.
Built with Java programming language.
Operating Systems Windows, Ubuntu/Debian, Red Hat/Fedora/CentOS, Mac OS X, etc.
Browsers Chrome, Firefox, Microsoft IE 11, Apple Safari 6 and later.
Databases MySQL, SQL Server SQLite, PostgreSQL, and H2 database.

In modern software development, Continuous integration (CI) and continuous delivery (CD) are the most important practices. To achieve CI and CD, many tools out there in the market but Jenkins is the best open source platform used for CI and CD. Most of the DevOps love to use Jenkins CI/CD tool worldwide to accelerate software development, integrating and build process.

What is Jenkins?

Jenkins is an open source automation server. Jenkins is a continuous integration tool developed in Java. Jenkins helps to automate the non-human part of software development process, with continuous integration and facilitating technical aspects of continuous delivery.

Why do we use Jenkins?

Answer # Jenkins is an open-source continuous integration software tool written in the Java programming language for testing and reporting on isolated changes in a larger code base in real time. The Jenkins software enables developers to find and solve defects in a code base rapidly and to automate testing of their builds.

You Might Be Interested In – Jenkins Interview Questions 

Book Your Free Demo

Jenkins Training Course Curriculum

Jenkins Training Lesson # 1 – Introduction To Continuous Integration & Jenkins

In this chapter you will learn about, Agile Development, Continuous Integration Introduction, Continuous Integration Setup, Introduction to Jenkins, Jenkins Continuous Integration, Jenkins Features

Jenkins Training Lesson # 2 – Installing Jenkins

Downloading and Installing Jenkins, Running Jenkins, Running Jenkins on an Application Server, Installing Jenkins as a Windows Service

Jenkins Training Lesson # 3 – Jenkins Jobs & Source Code Management

Different kinds of Jenkins jobs, Introduction to Source Code Management, Configuring Source Code Management, Working with Subversion, Build Triggers, Schedule Build Jobs, Polling the SCM, Maven Build Steps

Jenkins Training Lesson # 4 – Security, Authentication, and Authorization in Jenkins

Jenkins Security, Authentication, Authorization, Confidentiality, Activating Security, Configure Authentication, Using Jenkins’s Internal User Database, Creating Users, Authorization, Matrix-Based Security, Create the Administrative User, Project-based Matrix Authorization, Project-Based Authentication

Jenkins Training Lesson # 5 – Jenkins Plugin

Introduction, Jenkins Plugins – SCM, Jenkins Plugins – Build and Test, Jenkins Plugins – Analyzers, Jenkins for Teams, Installing Jenkins Plugins

Jenkins Training Lesson # 6 – Distributed Builds With Jenkins

Distributed Builds, Slave Machines, Configure Jenkins Master, Configure Projects

Jenkins Training Lesson # 7 – Best Practices For Jenkins

You will learn about Jenkins Best Practices

Jenkins Training Lesson # 8 – Jenkins Project Explanation

Jenkins Real-time project explanation

Jenkins Training Lesson # 9 – Jenkins Interview Preparation tips

Here in this lesson training will explain how to prepare for Jenkins certification and Jenkins interviews.

Why Should You Consider Codingcompiler For Best Jenkins Training?

  • We offer Live online Jenkins Training on your flexible timings and weekends.
  • Our Jenkins Training course content designed as per industry requirements including practical hands-on job oriented practices.
  • You can start working with Jenkins and write code from the day one of your Jenkins online training class.
  • Our Jenkins trainers and instructors are experts with tons of subject knowledge. They will guide you in the best way to clear all the concepts required.
  • We offer job oriented real-time practical online Jenkins Training to understand with real-world examples.
  • Offering professional Jenkins Training from industry expert trainers helps you to become a professional Jenkins.
Book Your Free Demo

Maven Interview Questions And Answers For Experienced 2019

Maven Interview Questions And Answers For Experienced 2019. Here Coding compiler sharing 45 Real-Time Maven Interview Questions. These scenario-based Maven interview questions were asked in various interviews conducted by top MNC companies across the globe. These Apache Maven questions are prepared by industry expert Maven professionals. We hope that this list of interview questions on Maven will help you to crack your next Maven job interview. All the best for your future and happy learning.

Maven Interview Questions

  1. What is Maven Tool?
  2. Why should we use Maven?
  3. What is a Maven POM file?
  4. What are the repositories in Maven?
  5. What is an artifact in Maven?
  6. What is a Maven dependency?
  7. What does Maven dependency plugin do?
  8. What is the use of plugins in Maven?
  9. What is meant by goal in Maven?
  10. Where are Maven dependencies downloaded to?
  11. What is a maven assembly?
  12. What is meant by Mojo in Maven?
  13. What is the use of Maven clean?
  14. Where are Maven dependencies stored?
  15. What is a snapshot Maven?

Maven Interview Questions And Answers

Maven Interview Questions
Maven is an Open source software
Maven is a Build automation tool used primarily for Java projects.
Maven is Based on the concept of a project object model (POM).
Maven can Manage a project’s build, reporting and documentation from a central piece of information.
Maven developed by Apache Software Foundation
Maven License Apache License 2.0
Maven has written in Java

1) What is Maven Tool?

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

2) Why should we use Maven?

A) Maven is a powerful project management tool that is based on POM (project object model). It is used for projects build, dependency and documentation. Maven repository is a directory of packaged JAR file with pom.xml file. Maven searches for dependencies in the repositories.

3) What is a Maven POM file?

A) A Project Object Model or POM is the fundamental unit of work in Maven. It is an XML file that contains information about the project and configuration details used by Maven to build the project. It contains default values for most projects.

4) What are the repositories in Maven?

A) In Maven terminology, a repository is a directory where all the project jars, library jar, plugins or any other project specific artifacts are stored and can be used by Maven easily.

5) What is an artifact in Maven?

A) An artifact is a file, usually a JAR, that gets deployed to a Maven repository. A Maven build produces one or more artifacts, such as a compiled JAR and a “sources” JAR. Each artifact has a group ID (usually a reversed domain name, like com.example.foo), an artifact ID (just a name), and a version string.

6) What is a Maven dependency?

A) When maven is run on project B version 1.0 of artifacts a, b, c, and d will be used regardless of the version specified in their pom. a and c both are declared as dependencies of the project so version 1.0 is used due to dependency mediation. Both will also have runtime scope since it is directly specified.

7) What does Maven dependency plugin do?

A) Apache Maven Dependency Plugin. The dependency plugin provides the capability to manipulate artifacts. It can copy and/or unpack artifacts from local or remote repositories to a specified location.

8) What is the use of plugins in Maven?

A) “Maven” is really just a core framework for a collection of Maven Plugins. In other words, plugins are where much of the real action is performed, plugins are used to: create jar files, create war files, compile code, unit test code, create project documentation, and on and on.

9) What is meant by a goal in Maven?

A) Executing a phase means executes all previous phases. Plugin is a collection of goals. Plugin is a class and goals are methods within the class. Maven is based around the central concept of a build lifecycle.

10) Where are Maven dependencies downloaded to?

A) The jars , dependency files and other files which are downloaded by Maven reside in the Maven local repository. By default the Maven local repository is the .m2 folder. You can copy the jar directly into where it is meant to go. Maven will find this file next time it is runs.

Top 45 Maven Interview Questions And Answers

11) What is a maven assembly?

A) The Assembly Plugin for Maven is primarily intended to allow users to aggregate the project output along with its dependencies, modules, site documentation, and other files into a single distributable archive.

12) What is meant by Mojo in Maven?

A) A mojo is a Maven plain Old Java Object. Each mojo is an executable goal in Maven, and a plugin is a distribution of one or more related mojos. In short, a mojo is a maven goal, to extend functionality not already found in maven.

13) What is the use of Maven clean?

A) The Maven Clean Plugin, as the name implies, attempts to clean the files and directories generated by Maven during its build. While there are plugins that generate additional files, the Clean Plugin assumes that these files are generated inside the target directory.

14) Where are Maven dependencies stored?

A) The maven local repository is a local folder that is used to store all your project’s dependencies (plugin jars and other files which are downloaded by Maven). In simple, when you build a Maven project, all dependency files will be stored in your Maven local repository.

15) What is a snapshot Maven?

A) A snapshot version in Maven is one that has not been released. The idea is that before a 1.0 release (or any other release) is done, there exists a 1.0-SNAPSHOT . That version is what might become 1.0 . It’s basically ” 1.0 under development”.

16) What is an archetype in Maven?

A) Archetype is a Maven project templating toolkit. An archetype is defined as an original pattern or model from which all other things of the same kind are made. The name fits as we are trying to provide a system that provides a consistent means of generating Maven projects.

17) What are the Maven advantages over Ant?

A) Convention over Configuration – Maven uses a distinctive approach for the project layout and startup, that makes easy to just jump in a project. Usually it only takes the checkount and the maven command to get the artifacts of the project.

Project Modularization – Project conventions suggest (or better, force) the developer to modularize the project. Instead of a monolithic project you are often forced to divide your project in smaller sub components, which make it easier debug and manage the overall project structure

Dependency Management and Project Lifecycle – Overall, with a good SCM configuration and an internal repository, the dependency management is quite easy, and you are again forced to think in terms of Project Lifecycle – component versions, release management and so on. A little more complex than the ant something, but again, an improvement in quality of the project.

What is wrong with maven?

Maven is not easy. The build cycle (what gets done and when) is not so clear within the POM. Also, some issue arise with the quality of components and missing dependencies in public repositories.

The best approach (to me) is to have an internal repository for caching (and keeping) dependencies around, and to apply to release management of components. For projects bigger than the sample projects in a book, you will thank maven before or after.

The Best Maven Interview Questions And Answers

Maven Interview Questions # 18) How do you tell Maven to use the latest version of a dependency?

In Maven, dependencies are usually set up like this:


Now, if you are working with libraries that have frequent releases, constantly updating the <version> tag can be somewhat annoying. Is there any way to tell Maven to always use the latest available version (from the repository)?

A) In Maven 2, If you always want to use the newest version, Maven has two keywords you can use as an alternative to version ranges. You should use these options with care as you are no longer in control of the plugins/dependencies you are using.

A square bracket ( [ & ] ) means “closed” (inclusive).
A parenthesis ( ( & ) ) means “open” (exclusive).
Here’s an example illustrating the various options. In the Maven repository, com.foo:my-foo has the following metadata:

<?xml version=”1.0″ encoding=”UTF-8″?><metadata>
If a dependency on that artifact is required, you have the following options (other version ranges can be specified of course, just showing the relevant ones here):

Declare an exact version (will always resolve to 1.0.1):

Declare an explicit version (will always resolve to 1.0.1 unless a collision occurs, when Maven will select a matching version):

Declare a version range for all 1.x (will currently resolve to 1.1.1):

Declare an open-ended version range (will resolve to 2.0.0):

Declare the version as LATEST (will resolve to 2.0.0) (removed from maven 3.x)

Declare the version as RELEASE (will resolve to 1.1.1) (removed from maven 3.x):

Note that by default your own deployments will update the “latest” entry in the Maven metadata, but to update the “release” entry, you need to activate the “release-profile” from the Maven super POM. You can do this with either “-Prelease-profile” or “-DperformRelease=true”

Maven Interview Questions # 19) How can you create an executable JAR with dependencies using Maven?

I want to package my project in a single executable JAR for distribution.

How can I make Maven package all dependency JARs into my JAR?

A) You can use the dependency-plugin to generate all dependencies

and you run it with

mvn clean compile assembly:single
Compile goal should be added before assembly:single or otherwise the code on your own project is not included.

See more details in comments.

Commonly this goal is tied to a build phase to execute automatically. This ensures the JAR is built when executing mvn install or performing a deployment/release.

<id>make-assembly</id> <!– this is used for inheritance merges –>
<phase>package</phase> <!– bind to the packaging phase –>

Scenario Based Maven Interview Questions

Maven Interview Questions # 20) How do you convert input stream into string?

If you have java.io.InputStream object, how should you process that object and produce a String?

Suppose I have an InputStream that contains text data, and I want to convert this to a String. For example, so I can write the contents of the stream to a log file.

What is the easiest way to take the InputStream and convert it to a String?

public String convertStreamToString(InputStream is) {
// ???

A) A nice way to do this is using Apache commons IOUtils to copy the InputStream into a StringWriter… something like

StringWriter writer = new StringWriter();
IOUtils.copy(inputStream, writer, encoding);
String theString = writer.toString();
or even

// NB: does not close inputStream, you can use IOUtils.closeQuietly for that
String theString = IOUtils.toString(inputStream, encoding);
Alternatively, you could use ByteArrayOutputStream if you don’t want to mix your Streams and Writers

Maven Interview Questions # 21) What are the different ways to convert an InputStream to a Sting?

A) Ways to convert an InputStream to a String:

1) Using IOUtils.toString (Apache Utils)

String result = IOUtils.toString(inputStream, StandardCharsets.UTF_8);

2) Using CharStreams (guava)

String result = CharStreams.toString(new InputStreamReader(
inputStream, Charsets.UTF_8));

3) Using Scanner (JDK)

Scanner s = new Scanner(inputStream).useDelimiter(“\\A”);
String result = s.hasNext() ? s.next() : “”;

4) Using Stream Api (Java 8). Warning: This solution convert different line breaks (like \r\n) to \n.

String result = new BufferedReader(new InputStreamReader(inputStream))

5) Using parallel Stream Api (Java 8). Warning: This solution convert different line breaks (like \r\n) to \n.

String result = new BufferedReader(new InputStreamReader(inputStream)).lines()

6) Using InputStreamReader and StringBuilder (JDK)

final int bufferSize = 1024;
final char[] buffer = new char[bufferSize];
final StringBuilder out = new StringBuilder();
Reader in = new InputStreamReader(inputStream, “UTF-8”);
for (; ; ) {
int rsz = in.read(buffer, 0, buffer.length);
if (rsz < 0)
out.append(buffer, 0, rsz);
return out.toString();

7) Using StringWriter and IOUtils.copy (Apache Commons)

StringWriter writer = new StringWriter();
IOUtils.copy(inputStream, writer, “UTF-8”);
return writer.toString();

8) Using ByteArrayOutputStream and inputStream.read (JDK)

ByteArrayOutputStream result = new ByteArrayOutputStream();
byte[] buffer = new byte[1024];
int length;
while ((length = inputStream.read(buffer)) != -1) {
result.write(buffer, 0, length);
// StandardCharsets.UTF_8.name() > JDK 7
return result.toString(“UTF-8”);

9) Using BufferedReader (JDK). Warning: This solution convert different line breaks (like \n\r) to line.separator system property (for example, in Windows to “\r\n”).

String newLine = System.getProperty(“line.separator”);
BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
StringBuilder result = new StringBuilder();
String line; boolean flag = false;
while ((line = reader.readLine()) != null) {
result.append(flag? newLine: “”).append(line);
flag = true;
return result.toString();

10) Using BufferedInputStream and ByteArrayOutputStream (JDK)

BufferedInputStream bis = new BufferedInputStream(inputStream);
ByteArrayOutputStream buf = new ByteArrayOutputStream();
int result = bis.read();
while(result != -1) {
buf.write((byte) result);
result = bis.read();
// StandardCharsets.UTF_8.name() > JDK 7
return buf.toString(“UTF-8”);

11) Using inputStream.read() and StringBuilder (JDK). Warning: This solution has problem with Unicode, for example with Russian text (work correctly only with non-Unicode text)

int ch;
StringBuilder sb = new StringBuilder();
while((ch = inputStream.read()) != -1)
return sb.toString();

Maven Technical Interview Questions And Answers

Maven Interview Questions # 22) How do you find Oracle JDBC driver in Maven repository?

I want to add the oracle jdbc driver to my project as dependency (runtime scope) – ojdbc14. In MVNrepository site the dependency to put in the POM is:

of course this does’t work as it is not in the central repository used by maven. 2 questions:

How do I find a repository (if any) that contains this artifact?

How do I add it so that Maven will use it?

A) Unfortunately due the binary license there is no public repository with the Oracle Driver JAR. This happens with many dependencies but is not Maven’s fault. If you happen to find a public repository containing the JAR you can be sure that is illegal.

How do I add it so that Maven will use it?

Some JARs that can’t be added due to license reasons have a pom entry in the Maven Central repo. Just check it out, it contains the vendor’s preferred Maven info:

…and the URL to download the file which in this case is http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html.

Once you’ve downloaded the JAR just add it to your computer repository with (note I pulled the groupId, artifactId and version from the POM):

mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 \
-Dversion= -Dpackaging=jar -Dfile=ojdbc.jar -DgeneratePom=true
The last parameter for generating a POM will save you from pom.xml warnings

If your team has a local Maven repository this guide might be helpful to upload the JAR there.

Maven Interview Questions # 23) What is force maven update?

A) mvn clean install -U
-U means force update of snapshot dependencies. Release dependencies can’t not be updated this way.

Maven Interview Questions # 24) How to add local jar files to a Maven project?

How do I add local jar files (not yet part of the Maven repository) directly in my project’s library sources?

A) Install the JAR into your local Maven repository as follows:

mvn install:install-file

Where: <path-to-file> the path to the file to load
<group-id> the group that the file should be registered under
<artifact-id> the artifact name for the file
<version> the version of the file
<packaging> the packaging of the file e.g. jar


2) You can add local dependencies directly (as mentioned in build maven project with propriatery libraries included) like this:


25) How do you build fat jar using maven?

I have a code base which I want to distribute as jar. It also have dependency on external jars, which I want to bundle in the final jar.

I heard that this can be done using maven-assembly-plug-in, but I don’t understand how. Could someone point me to some examples.

Right now, I’m using fat jar to bundle the final jar. I want to achieve the same thing using maven.

A) Add following plugin to your pom.xml The latest version can be found at https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-assembly-plugin


After configuring this plug-in, running mvn package will produce two jars: one containing just the project classes, and a second fat jar with all dependencies with the suffix “-jar-with-dependencies”.

if you want correct classpath setup at runtime then also add following plugin


Maven Interview Questions # 26) What is pluginManagement?

This is a snippet of my pom file.


I use it successfully with the command

mvn install

But, when I try to enclose it into the “pluginManagement” tag, the maven-dependency-plugin stops working when I launch the install goal. Why does the “pluginManagement” tag change the build behavior? Or should I use another goal or option?

A) Plugin Management is an element that is seen along side plugins. Plugin Management contains plugin elements in much the same way, except that rather than configuring plugin information for this particular project build, it is intended to configure project builds that inherit from this one. However, this only configures plugins that are actually referenced within the plugins element in the children. The children have every right to override pluginManagement definitions.

You still need to add

in your build, because pluginManagement is only a way to share the same plugin configuration across all your project modules.

Advanced Maven Interview Questions And Answers

Maven Interview Questions # 27) How do you run JUnit tests in parallel in a Maven build?

I’m using JUnit 4.4 and Maven and I have a large number of long-running integration tests.

When it comes to parallelizing test suites there are a few solutions that allow me to run each test method in a single test-class in parallel. But all of these require that I change the tests in one way or another.

I really think it would be a much cleaner solution to run X different test classes in X threads in parallel. I have hundreds of tests so I don’t really care about threading individual test-classes.

Is there any way to do this?

A) From junit 4.7 it’s now possible to run tests in parallel without using TestNG. Actually it has been possible since 4.6, but there are a number of fixes being made in 4.7 that will make it a viable option. You may also run parallel tests with spring.


Use maven plugin:


Maven Interview Questions # 28) How do you host a Maven repository on github?

I have a fork of a small open sourced library that I’m working on on github. I’d like to make it available to other developers via maven, but I don’t want to run my own Nexus server, and because it’s a fork I can’t easily deploy it to oss.sonatype.org.

What I’d like to do is to deploy it to github so that others can access it using maven. What’s the best way to do this?

A) The best solution I’ve been able to find consists of these steps:

Create a branch called mvn-repo to host your maven artifacts.
Use the github site-maven-plugin to push your artifacts to github.
Configure maven to use your remote mvn-repo as a maven repository.
There are several benefits to using this approach:

Maven artifacts are kept separate from your source in a separate branch called mvn-repo, much like github pages are kept in a separate branch called gh-pages (if you use github pages)
Unlike some other proposed solutions, it doesn’t conflict with your gh-pages if you’re using them.
Ties in naturally with the deploy target so there are no new maven commands to learn. Just use mvn deploy as you normally would
The typical way you deploy artifacts to a remote maven repo is to use mvn deploy, so let’s patch into that mechanism for this solution.

Maven Interview Questions # 29) What is an uber jar? What does an uber-jar mean and what are its features/advantages?

A) an uber-jar is an “over-jar”, one level up from a simple “jar”, defined as one that contains both your package and all its dependencies in one single JAR file. The name can be thought to come from the same stable as ultrageek, superman, hyperspace, and metadata, which all have similar meanings of “beyond the normal”.

The advantage is that you can distribute your uber-jar and not care at all whether or not dependencies are installed at the destination, as your uber-jar actually has no dependencies.

All the dependencies of your own stuff within the uber-jar are also within that uber-jar. As are all dependencies of those dependencies.

Maven Interview Questions # 30) What are the methods for constructing an uber jar?

A) ubar jar is also known as fat jar i.e. jar with dependencies.

There are three common methods for constructing an uber jar:

Unshaded: Unpack all JAR files, then repack them into a single JAR. Works with Java’s default class loader. Tools maven-assembly-plugin

Shaded: Same as unshaded, but rename (i.e., “shade”) all packages of all dependencies. Works with Java’s default class loader. Avoids some (not all) dependency version clashes. Tools maven-shade-plugin

JAR of JARs: The final JAR file contains the other JAR files embedded within. Avoids dependency version clashes. All resource files are preserved.

Apache Maven Interview Questions For Experienced

Maven Interview Questions # 31) How do you get source JARs from Maven repository?

A) Get sources and Javadocs – When you’re using Maven in an IDE you often find the need for your IDE to resolve source code and Javadocs for your library dependencies. There’s an easy way to accomplish that goal.

mvn dependency:sources
mvn dependency:resolve -Dclassifier=javadoc

The first command will attempt to download source code for each of the dependencies in your pom file.

The second command will attempt to download the Javadocs.

Maven is at the mercy of the library packagers here. So some of them won’t have source code packaged and many of them won’t have Javadocs.

In case you have a lot of dependencies it might also be a good idea to use inclusions/exclusions to get specific artifacts, the following command will for example only download the sources for the dependency with a specific artifactId:

mvn dependency:sources -DincludeArtifactIds=guava

Maven Interview Questions # 32) Difference between maven scope compile and provided for JAR packaging?

What it difference in using maven scope compile and provided when artifact is built as a JAR? If it was WAR, then I understand – artifact would be included or not in WEB-INF/lib. But in case of the JAR it doesn’t matter – dependencies aren’t included. They have to be on classpath when their scope is compile or provided. I know that provided dependencies aren’t transitive – but is it only one difference?

A) Compile means that you need the JAR for compiling and running the app. For a web application, as an example, the JAR will be placed in the WEB-INF/lib directory.

Provided means that you need the JAR for compiling, but at run time there is already a JAR provided by the environment so you don’t need it packaged with your app. For a web app, this means that the JAR file will not be placed into the WEB-INF/lib directory.

compile – This is the default scope, used if none is specified. Compile dependencies are available in all classpaths of a project. Furthermore, those 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. For example, when building a web application for the Java Enterprise Edition, you would set the dependency on the Servlet API and related Java EE APIs to scope provided because the web container provides those classes. This scope is only available on the compilation and test classpath, and is not transitive.


dependencies are not transitive (as you mentioned)
provided scope is only available on the compilation and test classpath, whereas compile scope is available in all classpaths.
provided dependencies are not packaged

Maven Interview Questions # 33) What is Maven error “Failure to transfer…”?

I am trying to set up a project using Maven (m2eclipse), but I get this error in Eclipse:

Description Resource Path Location Type Could not calculate build plan: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced.

Original error: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 from/to central (http://repo1.maven.org/maven2): No response received after 60000 ExampleProject Unknown Maven Problem

Any ideas? It would be helpful if you could show me how to check if everything is configured fine…

A) Remove all your failed downloads:

find ~/.m2 -name “*.lastUpdated” -exec grep -q “Could not transfer” {} \; -print -exec rm {} \;

For windows:

cd %userprofile%\.m2\repository
for /r %i in (*.lastUpdated) do del %i

Then rightclick on your project in eclipse and choose Maven->”Update Project …”, make sure “Update Dependencies” is checked in the resulting dialog and click OK.

Maven Interview Questions # 34) How do you specify the Java compiler version in a pom.xml file?

A) Here is the method:

<version>(whatever version is current)</version>
<!– or whatever version you use –>

Maven Interview Questions # 35) Maven Run Project

Is there a Maven “phase” or “goal” to simply execute the main method of a Java class? I have a project that I’d like to test manually by simply doing something like “mvn run”.

A) You can run Java classes using:

mvn exec:java -Dexec.mainClass=”com.example.Main” [-Dexec.args=”argument1″] …
The invocation can be a simple as mvn exec:java if the plugin configuration is in your pom.xml. The plugin site on Mojohaus has a more detailed example.


Maven Interview Questions For DevOps

Maven Interview Questions # 36) How do you force Maven to copy dependencies into target/lib?

How do I get my project’s runtime dependencies copied into the target/lib folder?

As it is right now, after mvn clean install the target folder contains only my project’s jar, but none of the runtime dependencies.

A) The best approach depends on what you want to do:

If you want to bundle your dependencies into a WAR or EAR file, then simply set the packaging type of your project to EAR or WAR. Maven will bundle the dependencies into the right location.

If you want to create a JAR file that includes your code along with all your dependencies, then use the assembly plugin with the jar-with-dependencies descriptor. Maven will generate a complete JAR file with all your classes plus the classes from any dependencies.

If you want to simply pull your dependencies into the target directory interactively, then use the dependency plugin to copy your files in.

If you want to pull in the dependencies for some other type of processing, then you will probably need to generate your own plugin. There are APIs to get the list of dependencies, and their location on disk. You will have to take it from there.

or use this:



Maven Interview Questions # 37) Is there a way I can configure maven to always download sources and javadocs?

Specifying -DdownloadSources=true -DdownloadJavadocs=true everytime (which usually goes along with running mvn compile twice because I forgot the first time) becomes rather tedious.

A) Open your settings.xml file ~/.m2/settings.xml (create it if it doesn’t exist). Add a section with the properties added. Then make sure the activeProfiles includes the new profile.


<!– … other settings here … –>



Maven Interview Questions # 38) Missing artifact com.microsoft.sqlserver:sqljdbc4:jar:4.0

I am trying to add MS SQL driver dependency in my POM.xml file and the following is the dependency.

but I get this exception

Missing artifact com.microsoft.sqlserver:sqljdbc4:jar:4.0

A) Microsoft recently open sourced their jdbc driver.

You can now find the driver on maven central:

<!– https://mvnrepository.com/artifact/com.microsoft.sqlserver/mssql-jdbc –>
or for java 7:

<!– https://mvnrepository.com/artifact/com.microsoft.sqlserver/mssql-jdbc –>

Maven Interview Questions # 39) Maven: Lifecycle vs. Phase vs. Plugin vs. Goal

Relatively new developer here, even though I’ve been using it for a little while, I’m hoping to solidify my Maven fundamentals. Part of my problem is that I have no experience with Ant, which seems to be from where many explanations stem. I’ve been reading and watching tutorials, and I keep hearing the same terms:


From what I’ve learned, it seems that lifecycle is the broadest of the bunch, and is composed of (or completed by) phases, plugins, and/or goals.

Question: Could you provide any info on how these terms are related and the most common examples?

A) A Maven lifecycle is an (abstract) concept that covers all steps (or better: all the steps the Maven designers decided to support) that are expected to occur in a project’s development lifetime. These steps (or stages) are called phases in Maven terminology.

A Maven plugin is a container for/supplier of goals. Code implemented in goals is the real workhorse. (Maven in its core itself is just managing plugins and executing goals). Each of a plugin’s goals can be assigned/bound to any of the lifecycle phases.

When invoking mvn <phase> Maven passes all phases (every time) and executes all goals (supplied by plugins) that have been bound to any of the phases prior and up to (and including) the given phase. If there is a phase with no goal bound to it nothing is done. But the phase is passed nevertheless.

I.e. you can’t “‘insert’ additional phases” into one of Maven’s built-in lifecycles. They are already there, always! You could develop your own lifecycle with its own phases but that’s far beyond of simply using Maven as it is.

Phases called “pre-install” or “post-package” do not exist.

Maven Interview Questions # 40) How to force the intellij idea to reread/update all dependencies specified in the pom file?

A) Press Ctrl+Shift+A to find actions, and input “reimport”, you will find the “Reimport All Maven Projects”.

Apache Maven Build Automation Interview Questions

41) What is the difference between Ant and Maven?

A) Ant is mainly a build tool. Maven is a project and dependencies management tool (which of course builds your project as well). Ant+Ivy is a pretty good combination if you want to avoid Maven.

42) What is the difference between Jenkins and Maven?

A) Maven is a build tool, in short a successor of ant. It helps in build and version control. However Jenkins is continuous integration system, where in maven is used for build. Jenkins can be used to automate the deployment process.

43) What are Gradle and Maven?

A) Gradle is an open-source build automation system that builds upon the concepts of Apache Ant and Apache Maven and introduces a Groovy-based domain-specific language (DSL) instead of the XML form used by Apache Maven for declaring the project configuration.

44) What is the use of Maven in Selenium?

A) Maven is a build automation tool which is distributed under Apache Software Foundation. It is mainly used for Java projects. It makes build consistent with another project. Maven is also used to manage the dependencies.

45) What is Maven JXR?

A) Maven JXR project (formally Java Cross Reference) is a library to analyze a set of Java source files and produces documentation in HTML format.


  1. VirtualBox Interview Questions
  2. Laravel Interview Questions
  3. Logstash Interview Questions
  4. Elasticsearch Interview Questions
  5. Kibana Interview Questions
  6. JBehave Interview Questions
  7. Openshift Interview Questions
  8. Kubernetes Interview Questions
  9. Nagios Interview Questions
  10. Jenkins Interview Questions
  11. Chef Interview Questions
  12. Puppet Interview Questions
  13. RPA Interview Questions And Answers
  14. Demandware Interview Questions
  15. Visual Studio Interview Questions
  16. Vagrant Interview Questions
  17. 60 Java Multiple Choice Questions
  18. 40 Core Java MCQ Questions
  19. Anaplan Interview Questions And Answers
  20. Tableau Multiple Choice Questions
  21. Python Coding Interview Questions
  22. CSS3 Interview Questions
  23. Linux Administrator Interview Questions
  24. SQL Interview Questions
  25. Hibernate Interview Questions
  26. Android Interview Questions
  27. Mulesoft Interview Questions
  28. JSON Interview Questions
  29. PeopleSoft HRMS Interview Questions
  30. PeopleSoft Functional Interview Questions

VirtualBox Interview Questions And Answers 2019

VirtualBox Interview Questions And Answers 2019. Here Coding compiler sharing a list of 16 Real-Time VirtualBox Interview Questions for experienced. These Oracle VM VirtualBox questions were asked in various interviews and prepared by industry experts. Learn Now!

VirtualBox Interview Questions

  1. What is Virtual Box?
  2. What is the use of virtual box?
  3. What are the benefits of using a virtual machine?
  4. Virtual box runs on which operating systems?
  5. Why is virtualization useful?
  6. What is Host operating system (host OS)?
  7. Guest operating system (guest OS)?
  8. What are VM groups?
  9. What is Clean architecture or unprecedented modularity?
  10. Virtual Box extension packages uses which file name extension?

VirtualBox Interview Questions Answers

VirtualBox Interview Questions
VirtualBox is an Open source software
VirtualBox is a Hypervisor for x86 computers
VirtualBox supported OS Windows, macOS, Linux and Solaris
VirtualBox developed by Oracle Corporation
VirtualBox author Innotek GmbH
VirtualBox has written in C, C++, x86 assembly language

1) What is Virtual Box?

A) VirtualBox is powerful Cross-platform Virtualization Software for x86-based systems.

2) What is the use of virtual box?

A) Running multiple operating systems simultaneously. VirtualBox allows you to run more than one operating system at a time. This way, you can run software written for one operating system on another (for example, Windows software on Linux or a Mac) without having to reboot to use it.

3) What are the benefits of using a virtual machine?

A) The main advantages of virtual machines: Multiple OS environments can exist simultaneously on the same machine, isolated from each other; Virtual machine can offer an instruction set architecture that differs from real computer’s; Easy maintenance, application provisioning, availability and convenient recovery.

We can create and run multiple Virtual Machines, running different operating systems, on the same computer at the same time. For example, you can run Windows and Linux on your Mac, run Linux and Solaris on your Windows PC, or run Windows on you Linux systems.

4) Virtual box runs on which operating systems?

A) Presently, VirtualBox runs on Windows, Linux, Macintosh, and Solaris hosts and supports a large number of guest operating systems including but not limited to Windows (NT 4.0, 2000, XP, Server 2003, Vista, Windows 7, Windows 8, Windows 10), DOS/Windows 3.x, Linux (2.4, 2.6, 3.x and 4.x), Solaris and OpenSolaris, OS/2, and OpenBSD.

5) Why is virtualization useful?

A) The techniques and features that VirtualBox provides are useful for several scenarios:

Running multiple operating systems simultaneously. VirtualBox allows you to run more than one operating system at a time. This way, you can run software written for one operating system on another (for example, Windows software on Linux or a Mac) without having to reboot to use it.

Since you can configure what kinds of “virtual” hardware should be presented to each such operating system, you can install an old operating system such as DOS or OS/2 even if your real computer’s hardware is no longer supported by that operating system.

Easier software installations. Software vendors can use virtual machines to ship entire software configurations. For example, installing a complete mail server solution on a real machine can be a tedious task.

With VirtualBox, such a complex setup (then often called an “appliance”) can be packed into a virtual machine. Installing and running a mail server becomes as easy as importing such an appliance into VirtualBox.

Testing and disaster recovery. Once installed, a virtual machine and its virtual hard disks can be considered a “container” that can be arbitrarily frozen, woken up, copied, backed up, and transported between hosts.

Infrastructure consolidation. Virtualization can significantly reduce hardware and electricity costs. Most of the time, computers today only use a fraction of their potential power and run with low average system loads.

Oracle VM VirtualBox Interview Questions

6) What is Host operating system (host OS)?

A) Host OS is the operating system of the physical computer on which VirtualBox was installed.

7) Guest operating system (guest OS)?

A) Guest OS is the operating system that is running inside the virtual machine.

8) What are VM groups?

A) VirtualBox provides a groups feature that enables the user to organize and control virtual machines collectively, as well as individually. In addition to basic groups, it is also possible for any VM to be in more than one group, and for groups to be nested in a hierarchy — i.e. groups of groups.

In general, the operations that can be performed on groups are the same as those that can be applied to individual VMs i.e. Start, Pause, Reset, Close (Save state, Send Shutdown, Poweroff), Discard Saved State, Show in fileSystem, Sort.

9) What is Clean architecture or unprecedented modularity?

A) VirtualBox has an extremely modular design with well-defined internal programming interfaces and a clean separation of client and server code. This makes it easy to control it from several interfaces at once: for example, you can start a VM simply by clicking on a button in the VirtualBox graphical user interface and then control that machine from the command line, or even remotely.

10) Virtual Box extension packages uses which file name extension?

A) VirtualBox extension packages have a .vbox-extpack file name extension.

VirtualBox Frequently Asked Interview Questions

VirtualBox Interview Questions # 11) What is the use of log file in Virtual Box?

A) One of the key tools you can use to diagnose any issues with VirtualBox is the VirtualBox log file for a vm session. VirtualBox always creates a log file which reflects the lifecycle of the virtual machine.

VirtualBox Interview Questions # 12) Where do you find log files in VirtualBox?

A) VirtualBox log files live in a per-user/per-vm standard directory that will be something like:

On Windows, this is “%HOMEDRIVE%%HOMEPATH%\\.VirtualBox\\Machines\\<vm name>\\Logs”; typically some- thing like “C:\\Users\\Username\\.VirtualBox\\Machines\\<vm name>\\Logs\\vbox.log”

On Mac OS X, this is “$HOME/VirtualBox/Machines/<vm name>/Logs”

On Unix-like systems (Linux, Solaris), this is “$HOME/.VirtualBox/Machines/<vm name>/Logs”

VirtualBox Interview Questions # 13) What is Software-based virtualization?

A) In the absence of hardware-assisted virtualization, VirtualBox adopts a standard software-based virtualization approach. This mode supports 32-bit guest OSs which run in rings 0 and 3 of the Intel ring architecture.

VirtualBox Interview Questions # 14) What is Hardware-assisted virtualization?

A) VirtualBox supports both Intel’s VT-x and AMD’s AMD-V hardware-virtualization. Making use of these facilities, VirtualBox can run each guest VM in its own separate address-space; the guest OS ring 0 code runs on the host at ring 0 in VMX non-root mode rather than in ring 1.

VirtualBox Interview Questions # 15) What is Device virtualization?

A) The system emulates hard disks in one of three disk image formats:

VDI: This format is the VirtualBox-specific VirtualBox Disk Image and stores data in files bearing a “.vdi” filename extension.

VMDK: This open format is used by VMware products such as VMware Workstation and VMware Player. It stores data in one or more files bearing “.vmdk” filename extensions. A single virtual hard disk may span several files.

VHD: This format is used by Windows Virtual PC, and is the native virtual disk format of the Microsoft Windows operating system, starting with Windows 7 and Windows Server 2008 R2. Data in this format are stored in a single file bearing the “.vhd” filename extension.

16) What are the different methods of Cloning virtual machines in Virtualbox?

Full clone: In this mode all depending disk images are copied to the new VM folder. The clone can fully operate without the source VM.

Linked clone: In this mode new differencing disk images are created where the parent disk images are the source disk images. If you selected the current state of the source VM as clone point, a new snapshot will be created implicitly.


  1. Laravel Interview Questions
  2. Logstash Interview Questions
  3. Elasticsearch Interview Questions
  4. Kibana Interview Questions
  5. JBehave Interview Questions
  6. Openshift Interview Questions
  7. Kubernetes Interview Questions
  8. Nagios Interview Questions
  9. Jenkins Interview Questions
  10. Chef Interview Questions
  11. Puppet Interview Questions
  12. RPA Interview Questions And Answers
  13. Demandware Interview Questions
  14. Visual Studio Interview Questions
  15. Vagrant Interview Questions
  16. 60 Java Multiple Choice Questions
  17. 40 Core Java MCQ Questions
  18. Anaplan Interview Questions And Answers
  19. Tableau Multiple Choice Questions
  20. Python Coding Interview Questions
  21. CSS3 Interview Questions
  22. Linux Administrator Interview Questions
  23. SQL Interview Questions
  24. Hibernate Interview Questions
  25. Android Interview Questions
  26. Mulesoft Interview Questions
  27. JSON Interview Questions
  28. PeopleSoft HRMS Interview Questions
  29. PeopleSoft Functional Interview Questions
  30. PeopleTools Interview Questions