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

In java, how we can disallow serialization of variables?

989


What is style and indentation?

1006


What is meant by class loader? How many types are there? When will we use them?

964


How many bytes is a string in java?

986


How infinite loop is declared?

1012


How do you define a method?

974


What is the base class for error and exception?

996


Is binary a low level language?

911


Can inner class final?

1089


Why heap memory is called heap?

1041


What is a variable in java?

1118


What is procedure overloading?

2306


Describe the Big-O Notation.

1039


Similarity and difference between static block and static method ?

915


What is a double?

1091