Skip to content

Java Developer interview questions

Core Java, collections, concurrency, JVM, Spring and testing for Java developer roles.

61 questions · 6 topics · 12 free answers

Java Developer roadmap4 stages from basics to interview-ready. Learn the gaps, then come back and practise.

0 of 61 practised · 0 bookmarked · saved on this device

11 questions match

Collections and Streams
  1. #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.

  2. #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.

  3. #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.

  4. #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.

  5. #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.

  6. #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.

  7. #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.

  8. #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.

  9. #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.

  10. #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.