![]() ![]() What implementations of Deque do you know?.What implementations of Queue do you know?.What is a time complexity of HashSet add | get | remove operations?.What is a difference between HashSet and TreeSet?.What implementations of a Set do you know?.How to safely remove entries by value in HashMap?.What is a difference between HashMap and TreeMap?.What are a purpose of capacity and load factor in HashMap? What are default values? When is HashMap growing?.What is a difference between HashMap and HashTable?.What time complexity of get | put | remove operation? What happens in case of big amount of collisions?.What kind of object is better to use as a key and why? What happens if I change a field in a key object?.What are collisions and how HashMap handles it?. ![]() What is an internal implementation of HashMap?.If I remove an element from ArrayList will internal array be reduced?.When it’s better to use ArrayList and when to use LinkedList?.What is ConcurrentModificationException?.How to remove elements from List in the loop?.What is a difference between LinkedList and ArrayList?.What is time complexity for adding/removing elements to the beginning/middle/end?.Does Finally Block Executed If You Will Throw an Exception In Catch Block?.is Error a checked or unchecked exception?.When To Use Checked and Unchecked Exceptions?.What is the difference between error and exception?.What is checked and unchecked exception?.What is default modifiers for field and method in the interface?.Can interface extend another interface?.Since what versions of Java you can define default and private methods in the interface?.When you to use abstract class and when interface?.What is a difference between abstract class and interface?.Why Integer.valueOf(127) = Integer.valueOf(127) is true, but Integer.valueOf(128) = Integer.valueOf(128) is false?.What is a difference between String, StringBuilder and StringBuffer?.What is a difference between new String(“”) vs “”?.Is String immutable? Why do you think is it a good idea?.What is a difference between substring() implementations in Java 6 and 7?.What is a difference between Comparable and Comparator?.Does Java pass by reference or pass by value?.What is an immutable object? What are benefits?.What is a difference between shallow copy and deep copy?.How to serialize and deserialize object?.What is the difference between equals() and = ?.We’re comparing 2 objects, equals() method return false, hashCode() returns the same numbers.We’re comparing 2 objects, equals() method return true, hashCode() returns different numbers.What is equals() and hashCode() and why do we need it?.What methods of Object class do you know?.What types of annotation retention do you know?.What does final keyword mean on the class and method level?.What are wrapper classes? Is it mutable?.Can we declare static class? What is a difference with a non-static?.What is a difference between final, finally and finalize?.What is a difference between method and static method?.What is a difference between protected and package-private access modifiers?.What is a difference between JRE, JVM, and JDK?.What is a difference between OOP programming and functional programming?.What do you prefer inheritance or composition?.Is-a and has-a relationships: what is it and how to use it?.What is an abstraction and what are abstraction layers?.Of course, the interviewer could ask junior developer an advanced question and he will be really impressed if you’ll give him a good answer. I’ve collected questions for all levels: basic (junior developers), middle (middle developers) and advanced (senior developers) questions.ĭuring interview preparation, you should keep in mind that middle developer should know all basic and middle-level questions, senior should know basic, middle and advanced interview questions. This is the 2nd part of Java interview question series – Top-100 Hibernate Interview Questions and the 3rd one is Top-150 Spring Interview Questions. If you have amazing Java programming interview questions that are not on my list – please, leave a comment with your question and I’ll update a list. I’m going to add answers step-by-step because It’s a really huge job, currently, you can find a lot of answers in Java tutorials category.Įveryone who wants to add a new question or answer is welcome to my google doc, currently, I’m working on answers there. I think this collection would be good for everyone even if you’re basic (entry level) or advanced engineer (advanced level) or even architect. This is not only basic coding interview questions or questions for experienced developers. I collected all the most interesting and useful Java interview questions. I had more than 50 interviews since 2010th. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |