EPAM Systems Interview Question

Q: print in one line the values of a map public static void main(String[] args) { Map<Integer, String> map = new HashMap<>(); map.put(1, "One"); map.put(2, "Two");

Interview Answers

Anonymous

Apr 28, 2021

for(Map.Entry m : map.entrySet()){ system.out.println( m.getKey()+" "+m.getValue());

29

Anonymous

Jun 3, 2022

map.forEach((key, value ) -> System.out.println(key+"--"+value));

1

Anonymous

Feb 28, 2021

There's quite an extended back and forth in actual interviews for questions like this, so there's no real replacement for actual practice. The Prepfully EPAM Systems Test Automation Engineer experts have actually worked in this role, so they're able to do a propermock, which really puts you through the paces and lets you assess your readiness level. prepfully.com/practice-interviews

2