Properties It is the child class of Hashtable. In this case both key and value should be String Object only. Constructor Properties p = new Properties () Important methods of Properties String getProperty (String name). Return the value associated with the specified Property. If the specified property is not available then we will get null. […]
Tag: Java Collection
One of the IT Companies Java Interview Questions and Answers-1
One of the IT Companies Java Interview Questions and Answers-1 1) How many objects will be created for the following scenario? Integer a1=10; Integer a1=10; Integer a1=20; Integer a1=15; Ans: 3 objects will be created. Explanation: Java storing value in the cache and while initialization will check in the cache, if it is exist […]
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 […]
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 […]