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 top level class could not be static

Answer Posted / sanket mehta

static keyword is meant for providing memory and executing logic without creating Objects, a class does not have a value logic directly, so the static keyword is not allowed for outer class

If you declare the outer class as static, it will not allow to compile giving : Illegal modifier for the class classname; only public, abstract & final are permitted

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the applet security manager, and what does it provide?

996


What is meant by object oriented programming – oop?

989


What is the basic of java?

1025


Is string is a data type?

947


Why we use multi threading instead of multiprocessing?

1065


What is the purpose of a default constructor?

1099


What is use of arraylist in java?

1176


What is the default size of load factor in hashing based collection?

1051


Can we write method inside a method in java?

989


What invokes a thread's run() method in java programming?

1190


Can we have try block without catch block?

1031


What is the difference in between cpp and java? Can u explain in detail?

1091


What are the different ways to handle exceptions?

999


How do I get 64 bit java?

1113


How many bytes is double?

971