Question Bank
1085 approved questions from the community
Event delegation allows you to attach a single event listener to a parent element to handle events for multiple child elements.
Variables declared with 'var' are block-scoped.
WeakMap and WeakSet allow garbage collection of their keys/elements when there are no other references.
What is event bubbling?
isNaN() checks if a value is NaN.
In Java, the type of a variable can change during runtime.
Java supports multiple inheritance of classes.
Calling System.gc() in Java guarantees that garbage collection will run immediately.
Which of the following are examples of Java's rich standard library features?
What is the try-catch block used for in Java?
What is multi-threading in Java?
What is the marking phase in Java's garbage collection process?
What keyword is used to achieve inheritance in Java?
What is encapsulation in Java?
What command is used to view Java bytecode?
What is the purpose of bytecode verification in Java?
Java's platform independence means the same compiled bytecode can run on different operating systems without modification.
What is the difference between method overloading and method overriding?
What does 'WORA' stand for in Java?
The finally block in Java's exception handling is always executed regardless of whether an exception occurs.