More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know.
Ans. Maven is a build tool whereas Jenkins is continuous integration system.
Maven deals with application compilation, build and packaging whereas Jenkins tracks SCM for triggering builds and packages, triggering parent project builds upon dependencies, initiating builds and performing alerts. So Jenkins is kind of a wrapper around SCM and Build Tool for continuous integration and deployment.
Help us improve. Please let us know the company, where you were asked this question :
Ans. It means that the respective folder is not looked upon by Java to look for java or resource files and hence not being included as part of build.It needs to be added to Java Build Path.
Help us improve. Please let us know the company, where you were asked this question :
Ans. Upstream project is a project whose successful build is required for executing the existing project build whereas Downstream project is the one that is waiting for the upstream project to build as it has the upstream project as dependency.
For example - X project has an upstream project y and downstream project Z. So It means X has dependency Y and is a dependency for Z.
Help us improve. Please let us know the company, where you were asked this question :
Ans. Broken Build means as unsuccessful build whereas unstable build means build was created successfully but one of the Post Build report failed or could be a Test failure.
Help us improve. Please let us know the company, where you were asked this question :
Ans. Multi Level Inheritance is multi level hierarchy of classes. Here is the example - http://www.buggybread.com/2015/09/java-se-class-diagram-classes-that_603.html
Class RoleList extends ArrayList which in turn extends AbstractList which in turn extends AbstractCollection.
Help us improve. Please let us know the company, where you were asked this question :
Ans. Tomcat is a web server and a Servlet container. It is often used as an application server for web-based applications but does not include the complete suite of capabilities that a Java EE application server would supply.
Help us improve. Please let us know the company, where you were asked this question :
LikeDiscussCorrect / Improve  tomcat   j2ee   web server   application server   build management
Very frequently asked. Usually difference between String,StringBuffer and StringBuilder is asked in different variations.
Q16. Difference between StringBuffer and StringBuilder ?
Ans. If the Object value will not change, use String Class because a String object is immutable.
If the Object value can change and will only be modified from a single thread, use StringBuilder because StringBuilder is unsynchronized(means faster).
If the Object value may change, and can be modified by multiple threads, use a StringBuffer because StringBuffer is thread safe(synchronized).
Ans. Builder is a creational Design Pattern whereas Composite is a structural design pattern. Composite creates Parent - Child relations between your objects while Builder is used to create group of objects of predefined types.
Help us improve. Please let us know the company, where you were asked this question :
Ans. The best practice guideline between settings.xml and pom.xml is that configurations in settings.xml must be specific to the current user and that pom.xml configurations are specific to the project.
Help us improve. Please let us know the company, where you were asked this question :
Ans. By default, the location of the generated jar is in ${project.build.directory} or in your target directory. We can change this by configuring the outputDirectory of maven-jar-plugin.
Help us improve. Please let us know the company, where you were asked this question :
Ans. Its used to execute last command. Yes this can be used with other string to execute new command. For eg - if ls was the last command, We can execute !! -l for having the long listing.
Help us improve. Please let us know the company, where you were asked this question :