S&PGlobal || Senior Software Engineer| | Interview Experience
- Posted
- 28 May 2025
Summary
I interviewed for a Senior Software Engineer position at S&PGlobal and was rejected after answering a mix of coding, Java features, and system design questions.
How it went
- Coding Question-https://leetcode.com/problems/merge-k-sorted-lists/description/
- Java 8 new features
- Stream API - Difference between toList() and collect(Collectors.toList())
- Fail Fast and Fail Safe Iterator
- usual code based question on iterator- what happens if we try to use list.add and list.remove in for each loop. how to avoid it.
- Colletios.sort() - which sorting algoriothm is used here
- Concurrent HashMap - how it works
- Executor Framweork - which threadpool have you used- how many threads will you create for 1000 tasks in fixed threadpool.
- Completable Future
- Spring security - how to invalidate JWT token
- Builder Pattern
- Observer Pattern - comparison to kafka
- In memory Cache
Rejected.
Questions asked (13)
- 01
Merge k Sorted Lists
Data Structures & Algorithms · Hard
Open the problemMerge k sorted linked lists into one sorted list.
- 02
Java 8 New Features
Other
Discuss new features introduced in Java 8.
- 03
Stream API: toList() vs collect(Collectors.toList())
Other
Explain the difference between
Stream.toList()andStream.collect(Collectors.toList())in Java's Stream API. - 04
Fail Fast vs. Fail Safe Iterators
Other
Explain the concepts of Fail Fast and Fail Safe Iterators in Java.
- 05
Iterator Modification in For-Each Loop
Data Structures & Algorithms
Discuss what happens when
list.add()orlist.remove()are used inside a Java for-each loop and how to avoid such issues. - 06
Collections.sort() Algorithm
Other
Identify which sorting algorithm is used internally by
Collections.sort()in Java. - 07
Concurrent HashMap Internals
Other
Explain the internal working mechanism of
ConcurrentHashMap. - 08
Executor Framework & Thread Pool Sizing
System Design
Discuss experience with the Java Executor Framework, specific thread pools used, and how to determine the number of threads for 1000 tasks in a fixed thread pool.
- 09
Completable Future
Other
Discuss
CompletableFuturein Java for asynchronous programming. - 10
Spring Security: JWT Token Invalidation
System Design
How to invalidate a JWT token using Spring Security.
- 11
Builder Pattern
Other
Explain the Builder Design Pattern.
- 12
Observer Pattern vs. Kafka
System Design
Explain the Observer Design Pattern and compare its principles to how Kafka works.
- 13
In-Memory Cache
System Design
Discuss concepts and implementation of an In-Memory Cache.