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

As soon as the class is loaded, the static block will be
executed. Where as the static method should be called
explictly.

Is This Answer Correct ?    51 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we declare an array without size in java?

983


What is passed by reference and pass by value ?

1028


Is 64bit faster than 32 bit?

1068


What is the epoch date?

1021


Can we define constructor in inner class?

998


What language is java written?

1010


What is the difference between static class and normal class?

1023


How do you sort words in java?

920


What is the difference between throw and throws in java?

1096


How does hashset works in java?

1083


What is the use of http-tunneling in rmi?

1045


Can each java object keep track of all the threads that want to exclusively access it?

948


If you are given the name of the function at run time how will you invoke the function?

1132


What is the byte range?

1026


Do you know how to reverse string in java?

1145