Round 1: Hiring Manager - Technical Screening
Questions:
- Basic Java questions such as:
- Reverse a string
- Write XPath
The interviewer provided details about the product and explained the main roles and responsibilities.
Candidate's Approach
No approach provided.
Interviewer's Feedback
No feedback provided.
Round 2: Technical Interview
Questions: Part A: Java Concepts Questions
- What are different ways to create an object in Java?
- Can we create an object of an abstract class?
- Answer: No
- Follow-up: Does an abstract class have a default constructor?
- Answer: Yes
- Follow-up: If an object cannot be created from an abstract class, then why do we have a constructor in an abstract class?
- Can we have a final constructor in Java?
- Can we have a static constructor in Java?
Part B: Coding Questions
- What will be the output of the below code?
String s = 21 + "abc" + 49 + 14; System.out.println(s);
- What will be the output of the below code?
String s = 21 + 49 + "abc" + 14; System.out.println(s);
- Fizz buzz problem
- Suppose there are 2 arrays having integers. Create array number 3 which has all elements from array 1 and array 2. The condition is that you can use a for loop only once while solving the problem.
- Input: arr1: {1, 2, 3, 4, 5} & arr2: {6, 7, 8, 9, 10}
- Output: arr3: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
- Swap immediate elements in an array.
- Input: array: {18, 45, 7, 10, 5}
- Output: array: {45, 18, 10, 7, 5}
In this round, the candidate was able to answer all coding questions correctly but struggled with a few Java concepts. At the end of the interview, the interviewer inquired about the candidate's availability to join and explained the main roles and responsibilities of the position.
Candidate's Approach
No approach provided.
Interviewer's Feedback
No feedback provided.
Final Verdict: Not selected
Compensation: The candidate believes the compensation range for the Sr SDET role with 7+ years of experience at Mastercard is around 25 LPA (including 10% variable).