Java 8 Stream API: 8 Interview Questions You Should Be Able to Answer
Streams appear in almost every Java interview. Here are common Stream API questions with clear explanations and code you can practise.
Sample article
JavaScript
Two of the most asked JavaScript interview topics, explained with small examples you can reproduce on a whiteboard.
A closure is a function that remembers the variables from the scope where it was created, even after that outer function has finished running.
function createCounter() {
let count = 0;
return () => ++count;
}
const next = createCounter();
next(); // 1
next(); // 2 — count is preserved by the closureClosures power data privacy, function factories, memoization and many callback patterns.
JavaScript runs on a single thread. Synchronous code runs on the call stack first. Async callbacks wait in queues: the microtask queue (promises) is emptied before the next macrotask (setTimeout, I/O) runs.
console.log('A');
setTimeout(() => console.log('B'), 0);
Promise.resolve().then(() => console.log('C'));
console.log('D');
// Output: A, D, C, BPromise callbacks are microtasks, and all microtasks run before the next macrotask such as a setTimeout callback.
This is a sample article published as a starter resource. Verify technical details against official documentation for the versions you use.
Streams appear in almost every Java interview. Here are common Stream API questions with clear explanations and code you can practise.
Sample article
From @SpringBootApplication to @Transactional — the annotations you use every day, and how to explain them clearly in an interview.
Sample article
Signals changed how Angular handles state and change detection. Learn signal, computed and effect with simple examples.
Sample article
Prepare. Perform. Progress.
Our team can help you prepare, solve doubts and practise interviews around what you are learning.