Full Stack Developer (Java) Question:
Download Questions PDF

Please explain what is Event Loop?

Full Stack Developer (Java) Interview Question
Full Stack Developer (Java) Interview Question

Answer:

Node.js is a single threaded application but it support concurrency via concept of event and callbacks. As every API of Node js are asynchronous and being a single thread, it uses async function calls to maintain the concurrency. Node uses observer pattern. Node thread keeps an event loop and whenever any task get completed, it fires the corresponding event which signals the event listener function to get executed.

Download Full Stack Developer (Java) Interview Questions And Answers PDF

Previous QuestionNext Question
Tell us why isn’t String‘s .length() accurate?Explain me what is the JIT?