Java Developer interview questions
Core Java, collections, concurrency, JVM, Spring and testing for Java developer roles.
61 questions · 6 topics · 12 free answers
0 of 61 practised · 0 bookmarked · saved on this device
11 questions match
Collections and Streams#1What is the difference between List, Set and Map?EasyConceptCollections and Streams Pro answer
This answer is part of Pro
10 of 61 Java Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#2How does HashSet guarantee uniqueness?EasyConceptCollections and Streams Pro answer
This answer is part of Pro
10 of 61 Java Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#3Which Map implementation keeps insertion order and which keeps sorted order?EasyConceptCollections and Streams Pro answer
This answer is part of Pro
10 of 61 Java Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#4What is fail-fast iteration and ConcurrentModificationException?MediumConceptCollections and Streams Pro answer
This answer is part of Pro
10 of 61 Java Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#5What is the difference between HashMap, Hashtable and ConcurrentHashMap?MediumConceptCollections and Streams Pro answer
This answer is part of Pro
10 of 61 Java Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#6Explain map, filter and reduce in the Streams API.MediumConceptCollections and Streams Pro answer
This answer is part of Pro
10 of 61 Java Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#7When would you use Optional and when not?MediumConceptCollections and Streams Pro answer
This answer is part of Pro
10 of 61 Java Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#8How does Collectors.groupingBy work?MediumConceptCollections and Streams Pro answer
This answer is part of Pro
10 of 61 Java Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#9When can a parallel stream hurt performance?HardConceptCollections and Streams Pro answer
This answer is part of Pro
10 of 61 Java Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#10How does HashMap treat a bucket with many collisions in Java 8 and later?HardConceptCollections and Streams Pro answer
This answer is part of Pro
10 of 61 Java Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
Hunting for a Java Developer role too? See open Java Developer jobs.