In java, collection interview questions are mostly asked by the interviewers. Here is the list of mostly asked collections interview questions with answers.1) What is the difference between ArrayList and Vector?No.ArrayListVector 1) ArrayList is not synchronized. Vector is synchronized....
81Struts Framework provides the functionality to validate the form data. It can be use to validate the data on the users browser as well as on the server side. Struts Framework emits the java scripts and it can be used validate the form data on the client browser. Server side validation o...
ArrayList, LinkedList, HashSet, HashMap (keys & values) and Hashtable (values only) all allow NULL. The two exceptions are TreeMap and TreeSet. 10) What happens if we add the same key with different values to a HashMap? The new value replaces the old one because HashMap doesn't all...
Java’s ‘isinstanceof’ operator also follows Visitor Design Pattern. That’s it all about “Scala Intermediate Interview Questions and Answers”. We will discuss some Advanced Scala Interview Questions and Answers in my coming posts. Please drop me a comment if you like my post or have any ...
- Chosing the right type of collection based on the need, for example if size is fixed, we might want to use Array over ArrayList. If we have to iterate over the Map in order of insertion, we need to use LinkedHashMap. If we don't want duplicates, we should use Set. - Some ...
Core Java - Interview Questions and Answers for 'Arraylist' - 27 question(s) found - Order By Newest Very frequently asked. Favorite question in Walk in Drive of many Indian service companies. Q1. What is the difference between ArrayList and LinkedList ? Core Java Ans. Underlying data...
Other Resources: Software QA Resources Developer Resources DBA Resources Windows Tutorials Java JAR Files DLL Files File Extensions Security Certificates Regular Expression Link Directories Interview Q & A Biotech Resources Cell Phone Resources Travel Resources Frequently Asked Questions FYI... 2025-...
Follow-up questionsIf the candidate misses one of the requirements for immutability, invent a scenario in which immutability is violated and see how they handle it.You could ask about the internal data structure that was chosen (here ArrayList). Alternatives are Vector (needless synchronization) ...
34.What is the difference between array and ArrayList? An array and ArrayList are similar. When you want to store items of the same type, you can use an array. An array has a fixed size. When you want to store any type of data, we use an ArrayList. An ArrayList doesn’t have a ...
Top 25 Java Interview Questions : 1. Which two method you need to implement for key Object in HashMap ? In order to use any object as Key in HashMap, it must implements equals and hashcode method in Java. ReadHow HashMap works in Javafor detailed explanation on how equals and hashcode...