This interview experience is sourced from Chill Interview
Interview Summary
I recently had a 45-minute video interview for a Full Stack Engineer position at Millennium Management. The interview covered my previous projects, client-server communication, scalability, and three Java code analysis questions involving floating-point precision, hash-based collections, and multithreading.
The interviewer mentioned that the team was hiring for only one position, which made the process feel quite competitive. I also had difficulty understanding some of the questions because they weren't communicated very clearly, and I didn't feel the interviewer was particularly engaged. I'm still waiting for the final result, but I suspect I may not move forward.
Interview Details
Project Discussion: Client-Server Communication and Scalability
The interview started with questions about my previous engineering projects. I was asked to explain some of the systems I had worked on and discuss how different services communicated with client applications.
The interviewer also brought up scalability and asked questions related to designing systems that could handle increasing workloads. Unfortunately, the questions were sometimes difficult to interpret, which made the discussion less productive than I had hoped.
Question 1 — Java: Floating-Point Precision and Equality
The first coding question involved a short Java program performing arithmetic with double values. I was asked to predict the printed output and explain why two calculations that appeared mathematically equivalent might produce different results.
The code was similar to the following:
public class DecimalCheck {
public static void main(String[] args) {
double x = 0.3 - 0.2;
double y = 0.2 - 0.1;
System.out.println((float) x);
System.out.println((float) y);
System.out.println(x == y);
System.out.println(x == y);
}
}
After predicting the output, I was asked how I would modify the code so that the two calculated values could be compared as equal. The question focused on Java floating-point representation, precision, numeric casting, and equality comparisons.
Question 2 — Java: HashSet, ArrayList, and Mutable Objects
The second question involved a custom class representing a two-dimensional point. The class implemented equals() and hashCode() based on its coordinates, but the coordinate fields were mutable. The interviewer provided code similar to this:
import java.util.*;
class Coordinate {
int x, y;
Coordinate(int x, int y) {
this.x = x;
this.y = y;
}
public int hashCode() {
return Objects.hash(x, y);
}
public boolean equals(Object obj) {
if (!(obj instanceof Coordinate)) {
return false;
}
Coordinate other = (Coordinate) obj;
return x == other.x && y == other.y;
}
public String toString() {
return "(" + x + ", " + y + ")";
}
}
public class CollectionCheck {
public static void main(String[] args) {
Collection<Coordinate> set = new HashSet<>();
Collection<Coordinate> list = new ArrayList<>();
Coordinate p = new Coordinate(3, 4);
set.add(p);
list.add(p);
System.out.println(set.contains(p));
System.out.println(list.contains(p));
p.x = 6;
Coordinate q = new Coordinate(6, 4);
System.out.println(set.contains(q));
System.out.println(set.contains(p));
System.out.println(list.contains(p));
set.remove(p);
System.out.println(set);
}
}
I was asked to predict what each println statement would output. The interviewer specifically wanted me to reason about what happens when an object is inserted into a HashSet, its fields are modified afterward, and another object with equivalent coordinate values is created.
The discussion also involved comparing the behavior of HashSet and ArrayList when checking for or removing objects. The central concepts were object equality, hash codes, mutability, and how Java collections handle objects whose hash-relevant fields change after insertion.
Want to learn more questions / follow-ups asked in this interview?
I've put up the full version at here.
Interviewed recently?
Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.