Data structure - Interview Questions and Answers for 'Synechron' - 2 question(s) found - Order By Newest Ans. list.get(index); Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  list Asked in 1 Companies Related Questions What is the difference between ArrayList and LinkedList ? If you are given a choice to use either ArrayList and LinkedList, Which one would you use and Why ? Will this code give error if i try to add two heterogeneous elements in the arraylist. ? and Why ? In a Linked list with sorted numbers, insert a new numbers while maintaining the sort order. Collections.sort can only be performed on ..
a. Set
b. List
c. Map
d. Any Collection implementation Is this a valid initialization ? Explain.
Collection<Collection> collection = new LinkedList<LinkedList>(); What is the difference between List, Set and Map ?
or
What are the different Java Collections Interfaces ? Difference between Vector and ArrayList ? Overridden methods must have the same ... Which of the following doesn't extend Collection interface ? Ans. Work with two pointers on the linked list - a slow pointer (increments by one node) and a fast pointer (increments by two nodes). If both of these pointers meet at the same node, then there is a cycle in the linked list. Otherwise, no cycle. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  linkedlist Asked in 1 Companies Related Questions What is the difference between ArrayList and LinkedList ? If you are given a choice to use either ArrayList and LinkedList, Which one would you use and Why ? In a Linked list with sorted numbers, insert a new numbers while maintaining the sort order. Is this a valid initialization ? Explain.
Collection<Collection> collection = new LinkedList<LinkedList>(); Difference between ArrayList and LinkedList ? Find the third last element in a linked list ? Write a program for LinkedList, with method to append node and traversing the list ? Write method to delete Node from a LinkedList. Difference between List and LinkedList ? Is it legal to initialize List like this ?