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...

what is the difference between static block and static
method

Answer Posted / himanshu kumar upadhyay

Static block is executed when the class which contain static
block is loaded in to memory and static method is executed
when it is called. Mostly static block is used for
Initialization of static members.

Is This Answer Correct ?    17 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why can we not override static method?

1146


What access modifiers can be used for variables?

1203


What is yield () in java?

926


Explain different ways of creating a thread?

1113


Explain super keyword in java.

1074


What is OOP's Terms with explanation?

1238


What do you mean by data type?

1062


What is a qms manual?

1040


Does java have extension methods?

1043


Difference between nested and inner classes ?

1184


Explain about join() method?

1021


What are the drawbacks of singleton class?

1062


What is downcasting?

1201


Why java uses the concept of the string literal?

1104


What is scope & storage allocation of static, local and register variables? Explain with an example.

1048