Technical Interview Preparation

Get hired by top tech companies with our comprehensive interview preparation.

Get Started

Category: Java

Java

Google Guava’s Multimap class in Java

Google Guava’s Multimap interface allows mapping a single key to multiple values in Java, unlike java.util.Map where a key can only be mapped to a single value. This post will discuss how to use Guava’s MultiMap in Java and discuss its advantages over standard map implementation.

Java

Reverse a List in Java (In-place)

This post will discuss how to reverse a list in Java by modifying the list in-place. That means that the conversion should occur without using any auxiliary list by overwriting the existing elements of the specified list.

Java

Clone a Map in Java

Write a Java program to copy all of the mappings from the specified map to a new map. In other words, clone a map in Java. Assume there are no mutable mappings on the map.

Do NOT follow this link or you will be banned from the site!