Round 1
Questions: Java Fundamentals
- Why is Java platform-independent?
- Which languages are platform-dependent, and why?
- Difference between ArrayList and Map
- Why can’t we use a Map for all purposes?
- Difference between Map and Set
- What is inheritance? Types of inheritance with examples.
- What is the static keyword? Where do we use it? Provide an example from your project.
Spring Boot Questions
- Why are Beans used in Spring?
- What is the difference between Java and Spring?
- Why do we use Spring?
- Spring Boot Annotations: Explain a few commonly used @Annotations with examples.
Coding Questions
- Merge two sorted arrays
- Find the Top K frequent elements
- Find the Longest Common Prefix
- Maximum number of trains that can be stopped at a station
- Problem Statement:
Given n platforms and two main railway tracks (for both directions).
Each train has three values:
- Arrival Time
- Departure Time
- Required Platform Number Some trains stop at the station (require platforms), while others pass through the main tracks. Objective: Find the maximum number of trains that can be accommodated for stoppage.
- Problem Statement:
Given n platforms and two main railway tracks (for both directions).
Each train has three values:
Candidate's Approach
No approach provided.
Interviewer's Feedback
No feedback provided.
Round 2
Questions: Spring Boot Basics
- Where does Spring Boot run? Where does Node.js run?
- Which file is used to download dependencies?
- Other than Maven, what dependency management tools are available?
- Additional Spring Boot questions (not remembered in detail).
Multithreading Question
- Countdown Timer Implementation
- Given a file containing a time value in the format H:M:S, implement a countdown timer from that value to 00:00:00.
- The file may contain:
- Only H (Hours)
- Only M (Minutes)
- Only S (Seconds)
- Ensure the timer displays in HH:MM:SS format and updates every second.
System Design Question
- Scenario: You are the network lead for "Women Who Code" and need to circulate a form with a subscription fee.
- The form is accessed by billions of people.
- Design a robust system to handle wide-scale usage.
Candidate's Approach
No approach provided.
Interviewer's Feedback
No feedback provided.