1) Describe the Collections framework in Java with a diagram showing the
interface/class hierarchy. Explain List, Set, and Queue interfaces.
2) Explain the Java Stream API and its applications.
Describe intermediate and terminal operations. Write a program to print the sum of
even numbers from an ArrayList<Integer> containing 1 to 10.
3) Describe LinkedList in the Java Collections Framework. Explain the methods
available in LinkedList.
4) Compare switch-case vs switch-expression in Java. Explain with a suitable example.
5) What are Functional Interfaces?
6) What are Lambda expressions?
7) What is the use of default methods? What will happen if two interfaces have the same
default method and a class implements it?
8) What is the use of static methods? Difference between default and static methods of an
interface.
9) What are Streams in Java 8? How to sort the elements in a list using the Streams API?
10) Difference between intermediate and terminal operations in Java. How to create streams
from an Array?
11) How to create streams from a List? What happens if you try to use a Stream after a
terminal operation?
12) What is the difference between map() and flatMap() in Streams?
13) What is the use of parallel streams in Java?
14) What is the difference between findFirst() and findAny() in Streams?
15) How can you create an infinite Stream in Java 8? How to remove duplicates from a List
using Java 8?
16) How to group elements in a collection? What is the difference between limit() and
skip()?
17) What is Optional in Java 8, and why is it useful? What are primitive streams?
18) Name the functional interfaces in Java 8 & their use How does forEachOrdered()
behave differently from forEach() in parallel streams?
19) What happens when you modify a list while iterating over it using Streams? What is
the difference between orElse() and orElseGet()?