C# Interview Questions :- Stack Heap in C#| Boxing Unboxing in C# | Value Type Reference Type in C#

preview_player
Показать описание

In this video we have covered 21 Interview Questions related to Boxing, Unboxing, Value Type , Reference Type, Stack & Heap.

00:00 :Introduction
01:58 Question 1:- Explain stack and Heap ?
02:46 Question 2:- Where are stack and heap stored ?
03:15 Question 3:- What goes on stack and what goes on heap ?
09:26 Question 4:- How is the stack memory address ?
11:02 Question 5:- How is stack memory deallocated LIFO or FIFO ?
14:01 Question 6:- How is memory and values stored primitive and ref ?
23:24 Question 7:- Can primitive data types be stored in heap ?
27:14 Question 8:- Explain value types and reference types ?
31:36 Question 9:- What is byval and byref ?
31:36 Question 10:- Differentiate on copy by value and copy by ref ?
32:44 Question 11:- What is boxing and unboxing ?
34:17 Question 12:- Is boxing unboxing good or bad ?
37:53 Question 13:- Can we avoid boxing and unboxing ?
45:08 Question 14:- What effect does boxing and unboxing
45:48 Question 15:- Are string allocated on stack or heap ?
47:15 Question 16:- How many stacks and heaps are created for an application ?
50:42 Question 17:- How are stack and heap memory deallocated ?
50:42 Question 18:- Who clears the heap memory ?
56:24 Question 19:- Where is structure allocated Stack or Heap ?
56:24 Question 20:- Are structures copy byval or copy byref ?
56:24 Question 21:- Can structures get created on Heap ?

Also see our other Step by Step video series below :-
-----------------------------------------------------------------------------------------------
For more details :-
📱 Mob. No. : +91-9967590707 / +91 7700975156 / +91-22-49786776

Share, Support, Subscribe and Connect us on!!!

Рекомендации по теме
Комментарии
Автор

This first and only video that managed to explain to me how stack and heap works. You sir deserve a medal for this one!

Fireballl
Автор

Awesome job, Shiv. You helped me land my entry-level job in my software development career.

zaharivaklinov
Автор

19. Structure is allocated on Stack
20. Structures are copy byVal
21. Yes, Structures can get created on heap if they are fields of a class

neerajsharma
Автор

Thank you for the most comprehensive video on youtube!!
The three questions at the end of the video are asking about the same thing
19. structs are stored on stack, since they are primitive data types
20. byval
21. Yes, as a part of a class instance

MikeKm-hdve
Автор

Its a perfect explanation
19) Structure gets allocated on stack
20) Here the structure is copy by Val not copy by ref
21)Yes we may create structure on heap memory also

overall Today few of my doubts regarding memory allocation of a program gets cleared
Thank you for such knowledgeable video...

koushikhalder
Автор

Q19: Structure alloc on Stack
Q20: MyStruct s2 = s1; It's copied byValue
Q21: Structure can be alloc on Heap when an object has structure property
-- Thank you so much for the lesson!

trangkd
Автор

Thanks a lot sir, I have been watching your videos since 2013...By watching your videos I cracked my interviews for L&T infotech, Arees Software, JLL, Qualsoft systems...🙂

rameezshaikh
Автор

Best and most experienced .Net trainer gives another great example of in depth concepts in easily understandable method

rmatube
Автор

Shiv you are really good at explaining things easy and smooth

For the past 9 years, i always prefer your videos for any learning or job change.

You are doing a great job, your voice tone is really impressive

mohammedsajjadahmed
Автор

Good teacher. Very thorough. This is how it’s done.

raykwatts
Автор

I didn't know how does memory allocation and deallocations works and you've shown it in so detailed and interesting way. Thank you so much. 🙂

minitam
Автор

This is a wonderful explanation. Thank you very much. And yes we did see the sanitizer bottle too😊.

gururaghavendra
Автор

Too good. Best video on stack and heap.

AspDevs
Автор

Excellent Teaching Method. I Love your videos from Pakistan

abdullahfiaz-pv
Автор

Really awesome.Because i didnt know all this there are always confusion.

Priyakumari-sx
Автор

Thank you Shiv, this is one of the best and most well explained videos I've ever watched on these subjects. I'm not even interviewing as I'm just learning C# and I absolutely loved how easy you made this. I hope you continue to deep dive into more C# content! I subscribed and plan on signing up to your website courses, Thank you again!

mel
Автор

It was very nice. Got good knowledge. Thank you sir. I have watched it completely

sirajudinsiraj
Автор

What a fabulous teaching strategy . keep great work continues☺

yuvrajingale
Автор

Thank you Shiv, your trainings are amazing, help me and many developers like me to be able to put things in decent way in the interview, otherwise many who did work can't explain things in proper way and step by step, that's amazing.

aleem
Автор

Just awesome. Now I know and can relate how value type and reference types work behind the scene.

ebindia