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

Can list be null in java?

986


What is a byte string?

1051


Is oracle charging for java?

970


What is the use of isempty in java?

963


Can we override private method?

1036


What do you mean by static variable?

1015


What does string intern() method do?

1036


Why string is called as immutable?

888


What is thread safe in java?

938


Why char array is favored over string for the storage of passwords?

998


What is the difference between checked exception and unchecked exception?

958


What are java packages?

974


Why do we use variables?

926


Can a static class have a constructor java?

932


Differences between C and Java?

1116