Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Why do we need constructor?

0 Answers  


If you donot specify an access modifier for a method, what is the default access modifier?

0 Answers  


write program in C# for palindrome? (aug 2009) write program in C3 for generating below output?(aug 2009) # # # # # # # # # #

4 Answers   TCS,


Why delegates are type safe?

0 Answers  


what is a constructor? What is a destructor?

0 Answers  


If I return out of a try/finally in c#, does the code in the finally-clause run?

0 Answers  


How do you inherit from a class in C#?

1 Answers  


can it possible to acees the virthual method using the override method object? plz give me the example

2 Answers  


Explain ACID rule of thumb for transactions.

1 Answers  


an object,class is value type or refarance type. ?

4 Answers   Synechron,


How many parameters can a method have c#?

0 Answers  


syntax for writing private method in a interface

7 Answers   ABMPL, Wipro,


Categories