GlobalLogic Interview Question

Basic lamda's (Write few example): But he was not even aware what lambda is. One thread question: fixed thread pool, future That's it. only 8 minutes. One word Pathetic.

Interview Answer

Anonymous

Jul 20, 2019

Runnable task2 = () -> { System.out.println("Task #2 is running"); }; He said it will not work. I was like what! just go and check. FixedThreadPool : Used ExecutorService to call newFixedThreadPool with N threads, called the execute.