Search Interview Questions
| 3235 questions in repository.|
There are more than 200 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Java - Interview Questions and Answers|
|Ans. <a href="http://javahungry.blogspot.com/2015/03/difference-between-array-and-arraylist-in-java-example.html" rel="nofollow">http://javahungry.blogspot.com/2015/03/difference-between-array-and-arraylist-in-java-example.html</a>|
Sample Code for ArrayList
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve array arraylist Accenture Accenture India Capgemini HCL Technologies Infosys Tata Consultancy (TCS) Revature Siemens Mindtree Sopra Steria General Atomics basic   frequent|
|Why Char array is preferred over String for storing password?|
|If you are given a choice to use either ArrayList and LinkedList, Which one would you use and Why ?|
|What is the difference between ArrayList and LinkedList ?|
| Which of the following is false about main method ?|
a. It should be declared public and static
b. it should have only 1 argument of type String array
c. We can override main method
d. We can overload main method
|Difference between Vector and ArrayList ?|
|What are the disadvantages of using arrays ?|
|What are the Disadvantages of using Collection Classes over Arrays ?|
|Will this code give error if i try to add two heterogeneous elements in the arraylist. ? and Why ?|
|Difference between ArrayList and LinkedList ?|
|Which of the following exception is thrown when we try to access element which is beyond the size ?|