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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between destructor and finalize?

868


Is there regular expression (regex) support available to c# developers?

929


How do you set a class path?

836


How to prevent the error while updating ui control from another thread?

919


Differentiate between response.expires and response.expiresabsolute?

942


What is difference between the "throw" and "throw ex" in .net?

897


What is new method in c#?

884


what is IDisposal interface,IComparable,IEquatable,IFormatable

969


What are the different types of constructors?

938


What are virtual destructors?

915


What is sorted list in c#?

857


What is the syntax for calling an overloaded constructor within a constructor (this() and constructorname() does not compile)?

918


What is a int in c#?

840


What are the collection types can be used in c#?

837


What is parallel programming in c#?

876