Pergunta de entrevista da empresa Dealer.com by Cox Automotive

For the position of Java Programmer: Take Home Test: 1. Take a file which contains key value pairs. Group the keys and display the count for each key 2. Check whether a string is palindrome or not. Round 1: 1. Walk through a tree using recursion. 2. Print all nodes, and indent the child nodes of the tree depending on their depth in the tree. 3. skip the root node and only print the child nodes. Round 2: 1. Some design patterns and architecture questions.

Resposta da entrevista

Sigiloso

27 de jul. de 2016

In the take home test, you have to be careful of the following 1. Use latest Java 8 IO api. If you use old API to open/close files, then the reviewers don't like it 2. Use Java 8 streams to process the file and group and sum the key value pairs. 3. Make sure exceptions (like IO exception) are handled. 4. Make sure that resources are cleaned up (finally block).