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

static block will execute when ever execution starts, it
means this block executes first of all, where as static
block have to call seperately and also it can call with out
object instance.

Is This Answer Correct ?    41 Yes 51 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Implement a stack with push (), pop() and min() in O(1) time.

1114


What is difference between array and arraylist in java?

996


Can we instantiate interface in java?

1134


What is the difference between JVM and JRE?

1102


What are nested classes in java?

1122


What do you mean by default constructor in java?

1075


What is void class in java?

982


What is derived datatype?

1221


what is singleton class in java?

1059


Explain the difference between throw and throws in java?

1008


How do you clear a method in java?

1012


Is space a char?

928


What is a subsequence of a string?

1069


Where are the card layouts used?

1070


what invokes a threads run() method? : Java thread

1018