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 / khasim

static block will be called at the time of loading the
class.it can be called once.developer can not be called
expecitly
static method will called at the time of loading the
class.here we can call expecitly by using there classname

Is This Answer Correct ?    16 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do loops java?

1065


Where are the card layouts used?

1122


How to make a read-only class in java?

1233


Can you pass by reference in java?

1030


Can we execute a program without main() method?

1084


Can you tell me range of byte?

1053


What is a string token?

1118


How finally used under exception handling?

985


how to create multithreaded program? : Java thread

997


Is passing by reference faster?

1045


what is anonymous class in java?

1089


What does jenkins do?

967


Difference between overriding and overloading in java?

1110


What is the difference between stream and buffer?

1016


What type of value does sizeof return?

1069