Posts

Showing posts from June, 2018

Asp.net Page Life Cycle

At each stage of page lifecycle, page raises some events which are:- PreInit  Init  InitComplete  LoadViewSTATE  PreLoad  Load  LoadComplete  PreRender  PreRenderComplete  SaveStateComplete  UnLoad  PreInit ·          1st event of Page Life Cycle  ·          Check IsPostBack Property Whether Page Is PostBack  ·          Set Theme and Master Page  Init ·          Control Property is set  ·          Control tree is built  InitComplete ·          Allow Tracking of View STATE  LoadViewSTATE ·          View State information is loaded   PreLoad ...

C# OOPs interview question for experienced

1. Difference between abstract and Interface. 2. Difference Abstraction and Encapsulation. 3. What is the purpose of Sealed Class.? 4. Can we inherit Sealed Class 5. Why is Static class used? 6. Can we use non-static methods in Static class? 7. How many types of access modifier in C# 8. Difference between internal and protected internal. 9. Difference between REF and OUT keyword. 10. When to use REF and OUT keyword? 11. What is partial class and what is use of  partial class? 12. What is partial methods? 13. Can we have multiple catch blocks in C#? 14. Difference between Const and READONLY keyword? 15. Difference between VAR and DYNAMIC keywords in C# (4.0) 16. What is shadowing in C#. 17. What is static constructor? 18. Can static constructor have parameters? 19. Use of Private Constructor? 20. Default Constructor. 21. What are properties in C#? 22. How properties is different from fields. 23. What is Readonly, Writeonly, ReadWrite an...