It’s a great design question and asked a lot in java interviews. This post provides all the differences between abstract class and interface. When should we use interface over the abstract class and vice versa?
A follow-up question which is asked in response to previous Java collection interview question. Here also bothLinkedListandArrayListare List implementation but there internal data-structure is different, one is derived from Array while other is derived from LinkedList. SeeLinkedList vs ArrayList in Jav...
Dear readers, the app for java developers! The app include bible of all java,best for java developers & interview. ---these Java Interview Questions have been…
You may use java.util.Random for this.Assume that shuffling the entire array may be a very long process. Change the method so that multiple clients may consume already-shuffled cells from the array in a thread-safe way.Why this question?
7. How do you handle error condition while writing stored procedure or accessing stored procedure from java? 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 retu...
Write a Java method that will remove a given character from a string object. We can use thereplaceAllmethod to replace all of the occurrences of a string with another string. The important point to note is thatreplaceAll()acceptsStringas argument, so you can use theCharacterclass to create ...
6. How to Convert from Array to List? This is acoding-related questionthat can be asked at the beginner level. The question intends to check the knowledge of applicants inCollection utility classes. For now, let us learn that there are two utility classes in the Collection framework which ...
Redis :https://redis.io/documentation Dubbo:http://dubbo.apache.org/zh-cn/docs/user/quick-start.html ShardingJDBC:https://shardingsphere.apache.org/document/current/cn/features/ 在线阅读 使用语雀提供了较好的阅读体验 https://www.yuque.com/itsaysay/mzsmvg...
You can easily prepare for Java Exams and Java Interviews with this App, It has an awesome features. It is having Favourite Option to bookmark your favourite questions and review the question with the favourite questions view . * It has an option to SHARE / ASK Questions with friends through...
Write a function which will return a random number from the list. You need to check that your friend, Bob, has your correct phone number, but you cannot ask him directly. You must write a the question on a card which and give it to Eve who will take the card to Bob and return ...