Walmart | Software Engineer II | /Chennai [Reject]
[ OK ]WS6dfCDbIp — full writeup
[ INFO ]category: Behavioral · Phone Screen difficulty: difficult freq: first seen: 2020-10-10
[DIFFICULT][PHONE SCREEN]Phone ScreenSWE II (Mid-Level)Rejected
$catproblem.md
Round 1:
Java:
String str = new String("5");
String str2 = "5";
What will str1 == str2 return? Why?
Encapsulation - use?, code
Inheritance - code
Overloading - code
Runtime polymorphism - how?, code
Multithreading:
Write a program with two threads. One thread has to print only the odd numbers from 1 to 10, the other thread has to print the even numbers from 1 to 10.
When to use interface and when to use abstract class? How does an abstract class differ from a normal method?
SQL:
Given a Table 'weather' with attributes 'date' and 'temperature'.
Write a query to retrieve the dates for which the temperature on the right next day to that day is greater than that date.