Blog Archives

02: 9 Java Collection interview Q&As on choosing the right data structure

Java Collection interview Q&As on choosing the right data structure as it is vital to choose the right data structure to …

Read more ›



02: Java 8 Streams, lambdas, intermediate vs terminal ops, and lazy loading with simple examples

A stream is an infinite sequence of consumable elements (i.e a data structure) for the consumption of an operation or iteration. … … Read more ›...

Members Only Content
Log In Register Home


03: Understanding Big O notations

Q. Have you seen job advertisements requiring Java candidates to work in real-time or high volume transaction processing systems? If you … … Read more ›...

Members Only Content
Log In Register Home


04: 7 Java Collection Quizzes

Q1. When is an object needs to implement the Comparable interface? a) When adding it to a HashSet. b)… … Read more ›...

Members Only Content
Log In Register Home


05: 4 Sorting objects in Java interview Q&As

Sorting objects in Java interview Q&As especially understanding Comparable & Comparator interfaces in Java for natural & custom sorting respectively. Q1… … Read more ›...

Members Only Content
Log In Register Home


06: HashMap & HashSet and how do they internally work? What is a hashing function?

HashMap & HashSet are not only one of the frequently used data structures, but also one of the popular interview topics.… … Read more ›...

Members Only Content
Log In Register Home


07: Java Iterable Vs Iterator differences and know how

Q1. What are the differences between Iterator<T> Vs Iterable<T>?
A1. The “Iterable” was introduced to be able to use …

Read more ›



08: If Java did not have a stack or map, how would you ….

Q1 If Java did not have a Stack implementation, how would you go about implementing your own? A1 1) Determine the … … Read more ›...

Members Only Content
Log In Register Home


09: When to use which Java data structure? and why?

List, Set, Map, and Queue(access the ends FIFO or LIFO) are the basic Java data structure interfaces … … Read more ›...

Members Only Content
Log In Register Home


10: 8 Java Maps & Caching Data in Java Interview Q&As

Q1. What is the purpose of a Map interface in Java collection API? A1. A map is a set of associations… … Read more ›...

Members Only Content
Log In Register Home


17 FAQ Java Collection interview Q&As

Java Collections interview questions and answers and Java String class interview Q&As are must know as you can’t write any decent … … Read more ›...

Members Only Content
Log In Register Home


Java 8: Different ways to sort a collection of objects in pre and post Java 8

The object we are going to sort is a Person. Option 1: Writing your own Comparator implementation. This can … … Read more ›...

Members Only Content
Log In Register Home


Sorting a Map by values instead of keys

This post is motivated by ““Sorting a list or array of numbers by frequency of occurrences in Java”

Sorting a

Read more ›



Java FAQs to Fast-track & Go places

Java Interview Q&As

Top