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

What is the maximum length of a url?

895


When to use runnable interface vs thread class in java?

936


Can we have multiple classes in a single file?

922


What are the rules for variable declaration?

915


How can an exception be thrown manually by a programmer?

939


What is equals method in java?

991


Is string pool garbage collected?

956


How many ways can an argument be passed to a subroutine and explain them?

973


What is the exception hierarchy in java?

916


What is the difference between form & report?

994


What is java objectoutputstream?

941


Why does java have two ways to create child threads?

912


How can we create an immutable class in java?

1027


Where local and global variables are stored?

1045


What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?

1049