Essential C# interview questions and answers on Static KeyWord
Sr.No | Problem | Solution |
---|---|---|
1 | What is static keyword ? | Solution! |
2 | What is a static variable ? | Solution! |
3 | What is a static method? | Solution! |
4 | Can a static block exist without a main() method? | Solution! |
5 | Can we Overload static methods in C# ? | Solution! |
5 | Can we Override static methods in C# ? | Solution! |
7 | Why main() method is declared as static? | Solution! |
8 | What is a static block? | Solution! |
9 | Can we have multiple static blocks in our code? | Solution! |
10 | What is a static class? | Solution! |
11 | Why abstract method cannot be static in C#? | Solution! |
12 | Can Interface in C# have static methods in it ? | Solution! |
13 | Can abstract class have static variable in it ? | Solution! |
14 | Non-static method cannot be referenced from a static context ? | Solution! |
15 | Why abstract method cannot be static in C#? | Solution! |
No comments:
Post a Comment