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

What type of variable is gender?

929


What are user defined exceptions?

962


Can you pass functions in java?

941


Why a dead thread occurs?

932


What is considered an anti pattern?

874


How do you use nextline in java?

900


Can we access instance variables within static methods ?

1032


write a program that list all permutations of ABCDEF in which A appears before B?

2436


What is this keyword used for?

1061


What is use of super keyword?

914


What is scope & storage allocation of static, local and register variables? Explain with an example.

961


What is the purpose of assert keyword used in jdk1.4.x?

1008


What is difference between throw and throws ?

1078


What are the differences between processes and threads?

990


How to make a class or a bean serializable?

910