Q41. How does dependency injection work in Angular?
Dependency injection supplies instances to classes instead of letting them construct collaborators. Providers are registered at the root (providedIn: 'root'), on a route,...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (2,728 available).
Dependency injection supplies instances to classes instead of letting them construct collaborators. Providers are registered at the root (providedIn: 'root'), on a route,...
Vue 3 wraps reactive objects in an ES Proxy that intercepts get and set operations. On a get, track() records the currently active effect (a render function, computed or ...
Single quotes preserve everything literally, while double quotes allow variable expansion, command substitution and some escape sequences. ```bash name="world" echo 'hell...
A `Symbol` is an immutable, interned identifier such as `:name`. A `String` is a mutable sequence of characters such as `"name"`. Symbols are stored once, so repeated use...
An optional represents a value that may be absent: either `.some(value)` or `.none`, written `nil`. Non-optional types can never be nil, and the compiler forces you to un...
Kotlin's type system distinguishes nullable from non-nullable types. `String` cannot hold null; `String?` can. This moves null checks to compile time and largely eliminat...
Value types store their data directly and are copied on assignment. Reference types store a reference to heap data, and copying copies the reference. - Value types: numer...
A pointer is a variable that stores an address. It can be null, reassigned and used with pointer arithmetic. A reference is an alias for an existing object: it must be in...
Ownership is Rust's compile-time memory management model. Every value has exactly one owner, and when the owner goes out of scope the value is dropped and its memory free...
An array has a fixed length that is part of its type: `[4]int` and `[5]int` are different types, and copying an array copies all elements. A slice is a small descriptor w...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.