Common Java Interview Questions

Jennifer YT
1 min readApr 22, 2021

Since I was looking for a Java Back-End Engineer position, there are some common data structure questions for Java programmers that are easily misunderstood in Java. As I had been a C# developer for several years, I’d like to compare the syntax difference between C# and Java as well. So… Let’s get started.

  1. The difference between Set, List, and Map in JAVA

SET is a non-duplicate collection. List is a collection that can contain duplicate elements and can insert, update, delete, and search the elements. Map can store pairs of keys and values as elements in a collection. I organize the comparison of SET, LIST and MAP as the below table.

In C#, there is no MAP. Dictionary is used in C# and represents a collection of keys and values.

THE ARCITLE HAS NOT COMPLETED.
TO BE CONTINUE…

--

--

Jennifer YT
0 Followers

I am a senior software engineer who is enthusiastic to coding and new technology.