Java Advanced

🏷️ Basic
🆓 100% Free Certificate 26 Questions 13 minutes 7 Views

This test evaluates your advanced knowledge of Java, focusing on design patterns, Java streams, concurrency, and JVM tuning for performance. To master advanced Java concepts, study Java Design Patterns Guide, learn about Java Streams at Baeldung, and watch this in-depth Advanced Java Course on YouTube.

1 What is the Java Memory Model?
2 What is the purpose of the 'CompletableFuture' class?
3 What is the difference between 'ReentrantLock' and 'synchronized'?
4 What is the purpose of the 'VarHandle' class introduced in Java 9?
5 What is Project Loom's main goal?
6 What is the difference between 'happens-before' and 'synchronized-with' in the Java Memory Model?
7 What is the purpose of the 'StampedLock' class introduced in Java 8?
8 What is the difference between 'Executor' 'ExecutorService' and 'ForkJoinPool'?
9 What is the purpose of the 'java.lang.invoke' package?
10 What is the difference between 'CountDownLatch' and 'CyclicBarrier'?
11 What is the purpose of the 'java.util.concurrent.Flow' API introduced in Java 9?
12 What is the difference between 'Phaser' and 'CyclicBarrier'?
13 What is the purpose of the 'java.lang.invoke.VarHandle' class?
14 What is the difference between 'CompletableFuture' and 'Future'?
15 What is the purpose of the 'java.util.concurrent.RecursiveTask' class?
16 What is the difference between 'ThreadLocal' and 'InheritableThreadLocal'?
17 What is the purpose of the 'java.lang.invoke.MethodHandle' class?
18 What is the difference between 'ConcurrentHashMap' and 'Hashtable'?
19 What is the purpose of the 'java.util.concurrent.atomic' package?
20 What is the difference between 'CountedCompleter' and 'RecursiveTask'?
21 What is the purpose of the 'java.lang.invoke.LambdaMetafactory' class?
22 What is the difference between 'StampedLock' and 'ReadWriteLock'?
23 What is the purpose of the 'java.util.concurrent.ForkJoinPool.commonPool()' method?
24 What is the difference between 'CompletableFuture' and 'CompletionStage'?
25 What is the purpose of the 'java.util.concurrent.Flow' interfaces?
26 What is the difference between 'Phaser' and 'CountDownLatch'?