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 java argument list?

879


Define how can we find the actual size of an object on the heap?

1113


Explain about the dynamic behavior of core java?

1069


Is java a digit method?

946


What is the difference between a choice and a list?

1021


What is difference between identifier and variable?

996


Can we start a thread twice in java?

909


What are wrapper classes in java?

1011


What is mean by collections in java?

1084


What is autoboxing and unboxing?

947


Is empty set an element of empty set?

1029


Difference between string, stringbuffer and stringbuilder?

985


How the metacharacters are different from the ordinary characters?

973


What is blank final variable?

1012


Are global variables initialized to zero?

909