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

i think static block is executed, when the class is
loaded.That means at the time of compile time.so that
block sill executed first.

where as static method have to call seperately and also it
can call with out object instance.so it executed when run time.

Is This Answer Correct ?    56 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between calling start() and run() method of thread?

1123


Why collection doesn’t extend cloneable and serializable interfaces?

1100


What happens when a thread cannot acquire a lock on an object in java programming?

1008


Tell me a few examples of final classes defined in Java API?

1090


Can you achieve runtime polymorphism by data members?

1143


Can a class with private constructor be extended?

939


What does the exclamation mark mean in java?

1240


What are extraneous variables examples?

1094


What is meant by vector class, dictionary class, hash table class, and property class?

1150


How to read and write image from a file ?

1042


What is the byte order of byte buffer?

1015


Why are data types important?

1083


When should the method invokelater() be used?

1015


What is a locale?

1145


Explain how hashmap works?

1061