TA Filter
TA Filter
a) Using keySet()
b) Using entrySet()
c) Using Java 8 streams
3. Explain the difference between ArrayList and LinkedList. When would you use one
over the other?
5. Question: What is the purpose of the Deque interface, and name some implementing
classes.
Answer: The Deque interface (double-ended queue) represents a queue where elements
can be added or removed from both ends. Implementing classes include ArrayDeque and
LinkedList.
6. Question: Explain the difference between INNER JOIN and LEFT JOIN.
Answer:
INNER JOIN: Returns only the rows where there is a match in both tables.
LEFT JOIN: Returns all rows from the left table and the matched rows from the right
table. If there is no match, NULL values are returned for columns from the right
table.
7. Write a query to get all the unique values of Job_Title from Employees table.
Answer: SELECT DISTINCT (Job_Title) FROM EMPLOYEES.