Q31. How does Kotlin handle null safety?
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...
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 (1,236 available).
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...
Average speed is total distance divided by total time, not the average of the two speeds. Total distance = 300 + 200 = 500 km. Total time = 3 + 2.5 = 5.5 hours. Average s...
Use a tight 60-90 second structure: Present, Past, Future. - Present: your current role and the core value you deliver ("I am a full-stack engineer with four years buildi...
A VM virtualises hardware: each VM runs a full guest OS on a hypervisor, so it is heavy (GBs) and slow to boot (minutes) but strongly isolated. A container virtualises th...
Big O describes how runtime or memory grows with input size, ignoring constants and lower-order terms. From fastest to slowest: - O(1) constant: hash lookup, array index....
- An interface declares a contract. It supports abstract methods plus default and static methods (Java 8+), private methods (Java 9+) and constants. A class can implement...
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.