RBS(NatWest Group) Interview Experience for Java Developer (2 - 5 Yrs Experienced)
Question Details
Round-1 DSA round (Online) - Cleared2 easy-level coding questions based on array and string.Round-2 Machine Coding Round (Offline) - Cleared6 scenarios were given to conve...
Full Details
Round-1 DSA round (Online) - Cleared 2 easy-level coding questions based on array and string. Round-2 Machine Coding Round (Offline) - Cleared 6 scenarios were given to convert into SpringBoot code based on the Car Rental System. (1-hour main jitna ho sake) Pehle se hi kuch classes and unme fields bana ke diye the. Car - name, type, registrationNo, costPerHour Renter - name, drivingLicenseNo, address, DatePeriod class that has two things start date and end date Criteria - ye khud se sochna tha kya filters laga sakta user DatePeriod - start date, end date DatePeriodUtil - isme do methods banakar diye the isInPeriod(LocalDate date1, DatePeriod date2) check karne ke liye rented car ka rental period chalra hai ya khtm hogya areOverlapping(DatePeriod date1, DatePeriod date2) check karne ke liye ki car rent ki dates overlap toh nahi hori (ache se smjh ni aaya mereko iska kaisa use karna) Method signature banake bhi diya tha kuch ka unko implement karna tha hme. rentCar(Car car, Renter renter) {} addCar(Car car){} returnCar(Car car, Renter renter){} getAllCar(Criteria criteria){} Har scenario ka kuch acceptance criteria tha jo meet karna tha. 2-4 scenario karne par round clear ho jara tha. Round-3 Technical Round (Offline) -
Rejected Q1. Find third highest salary in below array list using Java8 streams ? class Employee { int id; String name; int age; String gender; int yearOfJoining; double salary; } Q2. Given an array of cities = {"Agra", "Noida", "Agra", "Delhi", "Agra"} The task is to find the most occurring word in arr using Java8 streams. Q3. Map vs FlatMap? Q4. Atomic vs Volatile in Java? When to use which one ? Q5. Your favouite features in Java. Name them.
About This Question
This is a reported interview question from a rbs interview for a swe role during the technical round reported in 2023.
It covers the following topics: Arrays, Strings .
Difficulty rating: Easy