why we can't create an object for a static class??
what is the reason behind this?

Answers were Sorted based on User's Feedback



why we can't create an object for a static class?? what is the reason behind this?..

Answer / pushparaj pentakota

static blocks and static classes are executed before
constructor execution but object can be created while
executing the constructor only but static blocks are exected
before executing construtor so we can't create an object on
static classes.

Is This Answer Correct ?    23 Yes 2 No

why we can't create an object for a static class?? what is the reason behind this?..

Answer / rahul

Because static method will have defined / stored entry point.
so while calling it , it's entry point is sufficient , without creating an object.
that's why no need to create object

Is This Answer Correct ?    3 Yes 0 No

why we can't create an object for a static class?? what is the reason behind this?..

Answer / luckraj

Static class does not allow to create
any object.....

Is This Answer Correct ?    9 Yes 9 No

why we can't create an object for a static class?? what is the reason behind this?..

Answer / pushparaj pentakota (anakapall

static blocks and static classes are executed before
constructor execution but object can be created while
executing the constructor only but static blocks are exected
before executing construtor so we can't create an object on
static classes.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Sharp Interview Questions

How can i Spawn a Thread

0 Answers   HCL,


What is readline library?

0 Answers  


what are the benefits in using c# ?

1 Answers  


What are the ways to deploy an assembly?

2 Answers   Siebel Systems, Visual Soft,


What is the difference between int and int in c#?

0 Answers  






please exaplain gridview and what are the process available for it. how to add the row number automatically? is it possible to add child controls ?

2 Answers  


What are the types of methods in c#?

0 Answers  


Where static variables are stored?

0 Answers  


what is the equivalent to regsvr32 and regsvr32 /u a file in .net development?

0 Answers   4Cplus,


Is null c# operator?

0 Answers  


What?s a multicast delegate?

3 Answers  


How do you implement multiple inheritance in .NET?

5 Answers   Infosys, Microsoft,


Categories