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

static block is used to initialize the variables during the
JVM startup.
static methods are getting called with out creation of any
instance.

Is This Answer Correct ?    34 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who developed java?

994


Difference between a process and a program?

1116


Is a copy constructor?

1061


What are the main differences between the java platform and other platforms?

1061


What is the right data type to represent a price in java?

960


How transient variable is different from volatile variable?

1083


What are thread safe functions?

951


What is a final class in java?

1021


What is the public method modifier?

1015


How can we make sure main() is the last thread to finish in java program?

1201


What are identifiers in java?

1127


What is a class instance variable?

1126


If two threads have same priority which thread will be executed first ?

1482


What modifiers are allowed for methods in an interface?

1164


What is the difference between abstraction and encapsulation?

1049