In this post I am sharing most important HashMap interview questions along with answers. Java collections package is java.util, this is the most important package and used frequently in most of the projects. What are the methods required for an object to be used as a key or value in HashMap equals() hashcode() The key […]
Category: Java Collections
Java Collection Interview Questions and Answers
Java Collection Framework Interview Questions and Answers
Here I am going to sharing list of Java Collection Framework Interview Questions and Answers. Which are asking in the interview frequently. Java Collection Framework Interview Questions and Answers NarayanaswamyHello! I am Narayanaswamy founder and admin of narayanatutorial.com. I have been working in the IT industry for more than 12 years. NarayanaTutorial is my […]
One of the IT company Interview Questions
Hi viewers, here I am sharing list of interview questions. Why are using Java? Explain java OOPs concepts with one real time example? What is String? What is difference between Stringbuffer and Stringbuilder? What are the precautions/ Steps to create user defined immutable class? Can we use user defined immutable object as hashkey? Yes or […]
What is difference between Vector and ArrayList in Java?
Here is list of my favorite, frequently asked Questions from Java collection framework. Almost all of these questions have appeared in Java interview at various level ranging from Junior to Senior software engineer level. ArrayList and Vector are two of most used class on java collection package What is difference between Vector and ArrayList in Java? […]
What is difference between List, Set and Map
1. What is difference between List, Set and Map? List List is an ordered collection. List allows duplicate elements. List allows null elements and also store many null elements because it allows duplicate elements. The following most useful classes implementing List interface 1. ArrayList 2. LinkedList 3. Vector Set Set is unordered collection. Set does not […]