For example, some Collection implementations like List allow duplicate elements whereas other implementations like Set don't. A lot of the Collection implementations have a public clone method. However, it doesn't make sense to include it in all implementations of Collection. This is because Collect...
JP Morgan, Nomura and other banks e.g. Barclays capital. SeeHow HashMap works internally in Javafor detailed answer of this Java collection interview question.
If you are working on Enterprise applications, I am sure that JDBC API is a part of it. JDBC API provides database connectivity for relational databases, such as MySQL and Oracle. This article has a collection of 40+ interview questions related to the JDBC API. They cover areas from basic...
This is one of the tough Java interview question and its open for all, my friend didn't know the answer so he didn't mind telling me. my take is that stored procedure should return error code if some operation fails but if stored procedure itself fail than catching SQLException is only ...
4. WhyMapinterface does not extendCollectioninterface? An excellent answer to this interview question is “because they are incompatible“. TheCollectioninterface has a methodadd(Object o). TheMapcan not have such a method because it needs key-value pair. There are other reasons also such asMap...
[Interview Question ][Data Structure] Two Sum Problem -Array Two sum problem is one of the most asked data structure questions for a java developer interview. There could be one or more ways to solve the problem but i am trying to give the optimized solution to this problem. Lets first...
Iterator is an interface which is used to step through the elements of a Collection. 6What is similarities/difference between an Abstract class and Interface? 6.1Similarities 6.1.1They can be used to implement the polymorphism. 6.1.2Both of them can not be instantiated. ...
Looking forward to appear in Java Interview, here are the key Java Interview Questions with Answers only for you. - aatul/Java-Interview-Questions-Answers
2.3.Difference between “implements Runnable” and “extends Thread”? This question is also a very popular interview question. If your role demands creating designs for concurrent applications, you must know the correct answer to this question. The answer to this question decides which construct you...
Hello, my name is Guide. The autumn recruitment is coming, I have refactored and improved the content ofJavaGuide, and synchronized the latest update, hoping to help you. The first two articles: Java Basics Common Knowledge Points & Interview Questions Summary (Part 1), the latest version in...