C# Interview Questions: 18 Answers on async, LINQ, GC and DI (2026)
18 C# interview questions with sample answers: value vs reference types, async/await, LINQ deferred execution, GC generations, DI lifetimes and .NET 10.
Last updated: November 2026
Quick Answer
C# interviewers test whether you understand how the language and the .NET runtime behave under load, not whether you can recite keywords: value versus reference types and boxing, async/await and Task, resource cleanup with IDisposable, garbage collection generations, LINQ deferred execution, IEnumerable versus IQueryable, and dependency injection lifetimes in ASP.NET Core. Expect short concept questions, one live coding problem and questions about your own code. Rehearse the concept answers aloud in OphyAI Interview Practice, and prepare the live coding round with OphyAI Coding Interview.
| # | Question | What it tests |
|---|---|---|
| 1 | Value types vs reference types | Memory and copy semantics |
| 2 | Boxing and unboxing | Hidden allocations |
| 5 | How async/await works | Asynchronous model |
| 6 | Why not .Result, .Wait() or async void | Async failure modes |
| 9 | IDisposable and using | Resource cleanup |
| 10 | Garbage collection generations | Runtime knowledge |
| 11 | LINQ deferred execution | Query behavior |
| 12 | IEnumerable vs IQueryable | Database query design |
| 15 | DI service lifetimes | ASP.NET Core design |
| 18 | .NET versions, LTS and STS | Platform awareness |
The numbers match the full list below, which runs in the order interviews usually go: type system first, then async, memory, LINQ, modern language features, ASP.NET Core and the platform.
The Questions, With Sample Answers
1. “What is the difference between a value type and a reference type?”
Why they ask. Almost every other C# question (boxing, structs, records, equality, performance) builds on this one.
Sample answer. “A variable of a value type holds the instance itself, while a variable of a reference type holds a reference to an instance on the managed heap. Structs, enums and the built-in numeric types, bool and char are value types. Classes, strings, arrays and delegates are reference types. The practical difference is copying: when I assign a struct or pass it to a method, I copy the whole value, so changes to the copy don’t affect the original. When I pass a class instance, both variables point at the same object. One trap: if a struct contains a reference-type field, like a List, copying the struct copies only the reference, so both copies share that list. That is one reason I keep structs small and immutable.”
var a = new Point(1, 2);
var b = a; // full copy
b.X = 100; // a.X is still 1
public struct Point { public int X; public int Y; public Point(int x, int y) => (X, Y) = (x, y); }
Weak answers. “Value types live on the stack and reference types live on the heap,” with nothing about copy semantics. Where a value lives depends on context (a struct field inside a class lives on the heap), so interviewers push on that.
Practice this explanation out loud in OphyAI Interview Practice, which asks a follow-up and scores each answer.
2. “What are boxing and unboxing, and why do they matter?”
Why they ask. It reveals whether you notice hidden allocations in hot paths.
Sample answer. “Boxing converts a value type to object, or to an interface it implements. The runtime allocates an object on the managed heap and copies the value into it. Unboxing is the explicit cast back, and the runtime checks the boxed object really holds that exact type, so unboxing an int as a short throws InvalidCastException. Boxing is implicit, which is why it hides: passing an int to a method that takes object, storing ints in a non-generic ArrayList, or calling an interface method on a struct through the interface can all box. Microsoft’s docs call boxing and unboxing computationally expensive compared with simple assignments, because each box is a new allocation the GC must later collect. Generics such as List of int avoid it entirely.”
int i = 123;
object o = i; // boxing: heap allocation and copy
int j = (int)o; // unboxing: type check and copy
Weak answers. Defining the terms with no example of where boxing happens by accident, or claiming generics box too.
3. “When would you use a struct instead of a class?”
Why they ask. It tests design judgment built on question 1.
Sample answer. “I default to a class. I choose a struct for a small, immutable value with no identity, such as a coordinate, a money amount or a range, where copying it is cheap and value equality makes sense. Because structs copy on assignment, a large struct passed around a lot costs more than a reference. Mutable structs are a classic bug source: if I change a copy, the original quietly stays the same, so I mark them readonly. A struct can’t inherit from another struct or class, though it can implement interfaces. If I want a data carrier with value equality but reference semantics, I use a record class. If I want value semantics and generated equality, a readonly record struct gives me both in one line.”
Weak answers. “Structs are faster,” with no mention of copy cost, mutability or size.
4. “What is a record, and how is it different from a class?”
Why they ask. Records have been in the language since C# 9, and they show up in almost every modern codebase for DTOs and value objects.
Sample answer. “A record is a type the compiler gives data-centric behavior: value equality, a readable ToString, and nondestructive mutation with a with expression. With positional syntax, one line generates init-only properties, a constructor and a Deconstruct method. Two record instances are equal if they’re the same type and hold the same values, while two class instances are equal only if they’re the same object. Record class is a reference type, record struct is a value type. The immutability is shallow: an init-only property that holds an array still lets someone change the array’s contents. I wouldn’t use records as Entity Framework Core entities, because EF Core relies on reference equality to track one instance per entity.”
public record Person(string FirstName, string LastName);
var p1 = new Person("Ada", "Lovelace");
var p2 = p1 with { FirstName = "Grace" }; // new instance, p1 unchanged
Weak answers. “A record is an immutable class,” without value equality, the with expression or the shallow-immutability caveat.
5. “How do async and await actually work?”
Why they ask. Async is the most common source of production bugs in .NET services, so this is often the longest conversation in the screen.
Sample answer. “An async method returns a Task, or Task of T if it produces a value. When execution hits an await on a task that hasn’t finished, the method returns to its caller instead of blocking the thread. The compiler rewrites the method into a state machine, so when the task completes, execution resumes after the await with the local state intact. On a server, that means the thread goes back to serve other requests while the database or HTTP call is in flight, which is why async code scales better than blocking code. If the awaited task faulted, await rethrows the exception, so try and catch work the way they do in synchronous code. A good habit is to validate arguments before the first await, so bad input fails immediately instead of inside the task.”
Weak answers. “Async runs the method on a background thread.” Await doesn’t create a thread; it frees the current one while waiting.
Drill the async follow-ups in a technical mock in OphyAI Interview Practice until the state machine explanation fits in under two minutes.
6. “Why shouldn’t you call .Result or .Wait(), and when is async void acceptable?”
Why they ask. These are the two async mistakes reviewers flag most, and the answer shows whether you’ve debugged them.
Sample answer. “Task.Result and Task.Wait block the calling thread until the task finishes. On a server, that ties up a thread that could serve other requests, which hurts throughput, and in an app with a UI thread, blocking on work that needs to resume on that thread can deadlock. So I use await all the way up the call chain instead of mixing sync and async. Async void is only for event handlers, because the event signature requires void. Everywhere else I return Task: a caller can’t await an async void method, and an exception thrown inside it can’t be caught by the caller, so it can crash the process. If I need fire-and-forget, I still return a Task and handle its exceptions deliberately.”
Weak answers. Knowing the rule but not the reason, or saying async void is fine “if you don’t need the result.”
7. “Is asynchronous code the same as parallel code?”
Why they ask. Candidates often blur concurrency and parallelism, and the confusion leads to slow or unsafe code.
Sample answer. “No. Asynchronous code is about not blocking while waiting, so one thread can keep several operations in flight. Microsoft’s own explanation uses a cook making breakfast alone: start the eggs, start the toast, and attend to each as it needs you. Parallel code uses several threads at once to do CPU work faster. In C#, if I have three independent I/O calls, I start all three tasks and then await Task.WhenAll, so the total time is roughly the slowest call rather than the sum. If I await each one right after starting it, they run one after another. For CPU-bound work, such as image processing, I’d use Parallel.ForEach or Task.Run instead, and only after measuring that it helps.”
var userTask = GetUserAsync(id);
var ordersTask = GetOrdersAsync(id);
await Task.WhenAll(userTask, ordersTask); // both calls in flight together
Weak answers. “Async makes things run in parallel,” or wrapping I/O calls in Task.Run to “make them async.”
8. “What is the difference between throw and throw ex?”
Why they ask. It is a quick filter for whether you have read real stack traces.
Sample answer. “Inside a catch block, a bare throw rethrows the original exception with its stack trace intact. Throw ex restarts the stack trace at the current method, so I lose every frame between where the exception happened and where I caught it, which makes production debugging much harder. The analyzer rule CA2200 flags that mistake. If I need to add context, I throw a new, more specific exception and pass the original as the inner exception. If I have to rethrow from outside the catch block, for example after cleanup elsewhere, I capture it with ExceptionDispatchInfo.Capture and call Throw later. I also catch the most specific exception types first and don’t catch exceptions I can’t actually handle.”
Weak answers. Saying they are equivalent, or catching Exception everywhere and logging it without rethrowing.
9. “How do IDisposable and the using statement work?”
Why they ask. Leaked connections and file handles are a common outage cause, and the GC does not fix them.
Sample answer. “IDisposable is for types that hold resources the garbage collector doesn’t manage, like file handles, sockets or database connections. The GC reclaims memory, but it doesn’t call Dispose, so I have to. A using statement guarantees Dispose runs even if an exception is thrown, because the compiler turns it into a try and finally block. Since C# 8 I can write a using declaration without braces, and the object is disposed at the end of the enclosing scope. For async cleanup there’s IAsyncDisposable with await using. If my class owns a disposable field, my class should implement IDisposable too and dispose the field. And I don’t dispose services I got from the DI container, because the container owns their lifetime.”
using var reader = new StreamReader("input.txt"); // disposed at end of scope
string text = reader.ReadToEnd();
Weak answers. “The garbage collector will clean it up eventually,” or confusing Dispose with a finalizer.
10. “How does the .NET garbage collector work?”
Why they ask. It tests whether you can reason about memory pressure, pauses and leaks in a long-running service.
Sample answer. “The GC finds objects that are no longer reachable from roots, such as static fields, local variables on thread stacks and CPU registers, then reclaims their memory and compacts the survivors. The managed heap is split into generations 0, 1 and 2. New objects start in generation 0, where most of them die quickly, so those collections are cheap and frequent. Survivors are promoted to generation 1, then generation 2 for long-lived data, and a generation 2 collection is a full collection. Objects of 85,000 bytes or more go on the large object heap, which is collected with generation 2 and usually not compacted. In practice I reduce allocations in hot paths rather than calling GC.Collect, and I look for objects that stay referenced by accident, like event handlers or static caches.”
Weak answers. “C# has no memory leaks,” or recommending GC.Collect as a fix.
11. “What is deferred execution in LINQ?”
Why they ask. It explains a family of bugs: queries that run twice, run too late or see changed data.
Sample answer. “Most LINQ operators that return a sequence, like Where, Select and OrderBy, don’t run when I declare the query. The query variable stores the instructions, and the work happens when I enumerate it with foreach or call an operator like ToList. That has three consequences. If I enumerate the same query twice, it runs twice. If the source changes between declaration and enumeration, I see the new data. And exceptions surface at enumeration, not at the line that built the query. Operators that return a single value, such as Count, First, Max or Any, execute immediately. When I need a stable snapshot or will iterate several times, I call ToList or ToArray once and reuse the result.”
var evens = numbers.Where(n => n % 2 == 0); // nothing runs yet
numbers.Add(10);
int count = evens.Count(); // runs now and includes 10
Weak answers. Not knowing which operators are immediate, or calling ToList on every line “to be safe.”
For a live round, OphyAI Coding Copilot in the desktop app shows how it read the problem, the code, a dry run with edge cases and the Big O.
12. “What is the difference between IEnumerable and IQueryable?”
Why they ask. It separates people who use Entity Framework Core from people who understand what it sends to the database.
Sample answer. “IEnumerable of T runs LINQ to Objects: the lambdas are compiled delegates that run in memory over a sequence. IQueryable of T derives from IEnumerable, but a query against it is represented as an expression tree that a query provider, such as Entity Framework Core, translates into something like SQL when it’s enumerated. The practical rule is to keep filtering, sorting and paging on the IQueryable so the database does the work and returns only the rows I need. If I call AsEnumerable or ToList too early, everything after that point runs in memory, so I might pull a whole table across the network just to filter it. I also check the generated SQL in the logs when a query is slow.”
Weak answers. “IQueryable is for databases and IEnumerable is for lists,” with no mention of expression trees or where the filter runs.
13. “What are nullable reference types?”
Why they ask. NullReferenceException is the most familiar .NET error, and this feature is the language’s answer to it.
Sample answer. “Nullable reference types, added in C# 8, let me declare intent: string means the value should never be null, string with a question mark means it might be. The compiler runs null-state analysis and warns when I might dereference a maybe-null value or assign null to a non-nullable one. It’s entirely compile-time: the runtime type is the same, and nothing stops a null arriving at runtime from unannotated code or deserialization, so I still validate inputs at the boundaries. Recent project templates turn it on with the Nullable setting in the project file. The null-forgiving operator, an exclamation mark, silences a warning, and I use it sparingly because each one is a place the compiler can no longer protect me.”
Weak answers. Saying the feature prevents nulls at runtime, or sprinkling the null-forgiving operator to make warnings disappear.
14. “What are Span<T> and Memory<T>, and when would you use them?”
Why they ask. Performance-sensitive teams (trading, games, high-throughput APIs) use them to cut allocations.
Sample answer. “Span of T is a lightweight view over a contiguous block of memory: part of an array, stack memory from stackalloc, or unmanaged memory. Slicing a span doesn’t copy or allocate, so parsing a string with ReadOnlySpan of char avoids creating substrings. The catch is that Span is a ref struct that can only live on the stack, so I can’t store it in a field of a class, box it or hold it across an await. Memory of T solves that: it can live on the heap, so I use it in async methods and fields, and call its Span property when I actually process the data. Microsoft’s guideline is to accept Span for synchronous APIs and Memory for asynchronous ones.”
Weak answers. “Span is a faster array,” with no mention of the stack-only restriction.
15. “Explain dependency injection in ASP.NET Core and the three service lifetimes.”
Why they ask. Most C# backend roles are ASP.NET Core roles, and lifetimes come up in every code review.
Sample answer. “Dependency injection means a class receives its collaborators through its constructor instead of creating them, so I can swap implementations and test with fakes. ASP.NET Core has a built-in container: I register services in Program.cs and the framework creates and disposes them. A transient service is created every time it’s requested. A scoped service is created once per client request in a web app, which is why AddDbContext registers a DbContext as scoped by default. A singleton is created once and shared by every request for the app’s lifetime, so it must be thread-safe. I keep services small, prefer constructor injection, and avoid the service-locator pattern of calling GetService in my own code.”
builder.Services.AddTransient<IEmailFormatter, EmailFormatter>();
builder.Services.AddScoped<IOrderService, OrderService>();
builder.Services.AddSingleton<IClock, SystemClock>();
Weak answers. Listing the three method names without saying when each instance is created or why a singleton must be thread-safe.
If the screen includes a live ASP.NET Core design discussion, OphyAI Interview Copilot gives real-time answer suggestions on Zoom, Microsoft Teams and Google Meet.
16. “What goes wrong if a singleton depends on a scoped service?”
Why they ask. It is the classic follow-up to question 15 and catches people who memorized the definitions.
Sample answer. “The scoped service gets captured. The singleton is created once, so whatever scoped instance it received in its constructor lives as long as the app, effectively becoming a singleton. With a DbContext, that means one context shared across requests and threads, which leads to stale data and errors, since DbContext isn’t designed for concurrent use. In the Development environment, ASP.NET Core’s scope validation throws an exception when a service resolves a dependency with a shorter lifetime, which catches this early. The fix is either to change the lifetimes, or, if the singleton truly needs scoped work, such as a background service, to inject IServiceScopeFactory, create a scope for each unit of work and resolve the scoped service inside it.”
using var scope = scopeFactory.CreateScope();
var db = scope.ServiceProvider.GetRequiredService<AppDbContext>();
Weak answers. Not seeing the problem, or “fixing” it by making everything a singleton.
17. “Abstract class or interface: how do you choose?”
Why they ask. It tests object-oriented design, which Microsoft and many enterprise .NET teams probe directly.
Sample answer. “An interface defines a contract, and a class can implement many of them. An abstract class can hold state, constructors and shared implementation, but a class can inherit from only one. I start with an interface for anything I want to mock or swap, like a repository or a clock, because it keeps dependencies loose. I add an abstract base class when several related types genuinely share state and behavior. Since C# 8, interfaces can have default implementations, which lets a library add a member without breaking existing implementers, but I don’t use that as a substitute for a base class. And I prefer composition over deep inheritance trees, because they get hard to change.”
Weak answers. “Interfaces can’t contain method bodies,” which has been out of date since C# 8.
18. “Which .NET version would you target today, and what is LTS versus STS?”
Why they ask. It shows whether you follow the platform, and teams migrating off older versions want people who know the support calendar.
Sample answer. “Microsoft ships a major .NET release every November. Even-numbered releases are Long Term Support, with three years of free patches, and odd-numbered ones are Standard Term Support, with two years. As of November 2026, .NET 10 is the current LTS release, from November 2025, and .NET 11 shipped on November 10, 2026 as STS. Both are supported until November 2028. .NET 8 and .NET 9 reached end of support on November 10, 2026, so services still on them need a plan. For a new production service, I’d pick .NET 10 for the longer runway, unless the team upgrades every year anyway. On the language side, C# 15 ships with .NET 11 and adds union types, while C# 14 brought extension members and the field keyword.”
Weak answers. Naming .NET Framework 4.8 or .NET 6 as current, or not knowing the difference between the runtime and the C# language version.
Once you can answer all 18, run a full technical mock in OphyAI Interview Practice and ask for follow-ups on the two you found hardest.
How to Practice These
Say each answer aloud in under two minutes in OphyAI Interview Practice, which runs voice or text mock interviews with follow-up questions, a transcript and per-answer feedback, and works for technical and system design formats. In a live video interview, OphyAI Interview Copilot gives real-time answer suggestions with a live transcript on Zoom, Microsoft Teams and Google Meet. For the coding round, Coding Copilot in the desktop app (Premium plan, $59 a month, 15 credits a session) snaps the problem window with Cmd/Ctrl+Shift+A and shows an answer card with what to say first, the code, a dry run and the Big O in an overlay left out of screen sharing. Hiding a window from screen share does not hide it from a webcam, a person in the room, keystroke and paste history, tab or focus tracking, or proctoring and lockdown software. There is no $9 OphyAI plan: the Basic plan was retired in July 2026. Start practicing →
Pair this page with the technical interview prep guide for software engineers, the SQL interview questions (most .NET roles also test SQL Server queries) and the Java interview questions, whose garbage collection, equality and dependency injection questions map closely onto C#.
Frequently Asked Questions
What C# topics are asked most in interviews?
Expect value versus reference types, boxing, classes versus structs and records, async/await and Task, exception handling, IDisposable, garbage collection, LINQ and its deferred execution, and object-oriented design. Backend roles add ASP.NET Core, dependency injection lifetimes, Entity Framework Core and SQL. Performance-focused teams add Span of T and allocation questions. Prepare the fundamentals first, then the stack named in the posting.
Which .NET and C# version should I prepare for?
Prepare for the version in the job posting, then know the current landscape. As of November 2026, .NET 10 is the Long Term Support release and .NET 11 is the newest Standard Term Support release, while .NET 8 and 9 left support on November 10, 2026. Know records (C# 9), nullable reference types (C# 8) and primary constructors (C# 12), and be able to name one or two C# 14 or C# 15 features.
Do I need ASP.NET Core for a C# interview?
For most backend and full-stack C# roles, yes: expect questions on middleware, dependency injection lifetimes, controllers or minimal APIs, configuration and Entity Framework Core. Game, desktop and trading roles focus more on the language, memory and performance. Read the posting carefully, and check the company guide for the stack its teams describe in job listings and candidate reports.
Is C# similar enough to Java to prepare with Java questions?
Much of the preparation transfers. Both languages have managed memory with generational garbage collection, interfaces and abstract classes, generics, records and dependency injection in their main web frameworks. The differences interviewers probe are C#-specific: structs and value semantics, async/await, LINQ, properties, nullable reference types and Span of T. Use our Java interview questions for overlap, then focus on these areas.
Can I use C# in a general coding interview?
Most coding rounds at large employers let you choose a mainstream language, and C# is usually on the list. Our Microsoft guide notes C#, Python, Java and C++ as the most common choices there. Know the standard collections well (List, Dictionary, HashSet, Queue, Stack, PriorityQueue) and their complexity, so you don’t lose time looking up method names during the problem.
How do I explain C# concepts without sounding memorized?
Use three parts: a one-sentence definition, a short example from code you wrote, and a tradeoff or pitfall. For async, define what await does, mention a time you removed a blocking .Result call, then note the async void trap. Interviewers follow up on your example, so choose one you can discuss in depth for two minutes without notes.
How does OphyAI work in a C# coding interview?
In the desktop app, Coding Copilot (Premium plan, 15 credits a session) snaps the problem window with Cmd/Ctrl+Shift+A, and in a live interview Space or Cmd/Ctrl+Shift+L transcribes the question asked out loud. Each answer card shows how it read the problem, what to say first, the code, a dry run with edge cases and the Big O. Follow-ups remember the problem. The overlay is left out of screen sharing, but not out of proctoring software or a webcam.
Related Guides
- Microsoft interview guide: C#, Python, Java and C++ are the most common coding-round choices, with extra weight on object-oriented design
- US Bank interview guide: a Software Engineer 2 posting names C#, ASP.NET MVC, .NET 9 and SQL Server
- GEICO interview guide: a Data Engineer posting asks for SQL, Java, Python and .NET/C#
- Northrop Grumman interview guide: technical rounds cover C++, Java or .NET and object-oriented design
- Publix interview guide: candidate reports describe .NET roles with C#, MVC, SQL and dependency injection questions
- Caterpillar interview guide: software postings name C#, SQL and Azure DevOps
- Optiver interview guide: engineers mainly use C, C++, C#, Java and Python
- Java interview questions: 18 answers on HashMap, JVM memory, concurrency and Spring
- C++ interview questions: RAII, move semantics and undefined behavior, useful for game and trading roles
Sources and verification notes
Sources checked November 2026. Every technical claim in the sample answers was checked against Microsoft’s first-party documentation below. The sample answers are original templates, not questions published by any employer. Employer stack details in Related Guides come from this site’s company guides, which cite job postings and candidate reports.
- Microsoft, .NET and .NET Core support policy: .NET 11 STS released November 10, 2026; .NET 10 LTS released November 11, 2025; both supported to November 14, 2028; .NET 8 and .NET 9 out of support since November 10, 2026; LTS three years, STS two years.
- Microsoft Learn, The history of C# and What’s new in C# 15: C# 15 (November 2026, .NET 11 SDK) union types and closed hierarchies; C# 14 extension members and the field keyword; records in C# 9; nullable reference types, default interface members and using declarations in C# 8.
- Microsoft Learn, Value types and Boxing and unboxing: copy semantics, heap allocation on boxing, InvalidCastException on a mismatched unbox.
- Microsoft Learn, Asynchronous programming and Async return types: nonblocking await, Task.WhenAll, Result as a blocking property, async void limited to event handlers.
- Microsoft Learn, Best practices for exceptions: throw e restarts the stack trace; CA2200; ExceptionDispatchInfo.
- Microsoft Learn, Using objects that implement IDisposable and Fundamentals of garbage collection: using as try/finally, the GC does not call Dispose, generations 0-2, the 85,000-byte large object heap threshold.
- Microsoft Learn, Introduction to LINQ queries and
IQueryable<T>API reference: deferred versus immediate operators; expression trees executed by a query provider on enumeration. - Microsoft Learn, Records, Nullable reference types and
Memory<T>andSpan<T>usage guidelines: value equality, shallow immutability and the EF Core caveat; compile-time-only null analysis; Span stack-only, Memory for async. - Microsoft Learn, Dependency injection in ASP.NET Core and Service lifetimes: transient, scoped and singleton definitions; DbContext scoped by default; do not resolve scoped services from singletons; scope validation in Development.
Tags:
Share this article:
Rehearse your answers, then get live help on the call.
Practice free for up to 15 minutes, then use Interview Copilot in the OphyAI desktop app: real-time answer suggestions on Zoom, Teams and Google Meet, in a window hidden from screen sharing.
On your phone? Practice interview answers in the OphyAI app.
Hidden from screen share and recording; a webcam or a person in the room can still see your screen.
Related Articles
Java Interview Questions: 18 Answers With Code-Level Samples (2026)
Interview Tips
18 Java interview questions with sample answers: equals and hashCode, HashMap internals, JVM memory, concurrency, streams, records and virtual threads.
Read more →
Kafka Interview Questions: 16 Answers on Offsets, ISR and KRaft (2026)
Interview Tips
16 Kafka interview questions with sample answers: partitions and ordering, acks and min.insync.replicas, exactly-once, rebalances, KRaft and share groups.
Read more →
Spring Boot Interview Questions: 23 Answers for Boot 4, JPA & Security
Interview Tips
23 Spring Boot interview questions with sample answers: auto-configuration, @Transactional pitfalls, JPA N+1, security filter chain, test slices and Boot 4.
Read more →