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

static block is called when we create an object for that class,so it automatically excutes......
for static methods, we can call this methods by class names not by object....

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two types of exceptions in java? Which are the differences between them?

1092


Can we have any other return type than void for main method?

951


Can you make a constructor final?

1036


What is main in java?

1142


What are the five major types of reference sources?

1119


Why generics are used in java?

1035


Why is a constant variable important?

950


Can you inherit a constructor java?

1076


What is multithreading and its advantages?

1067


What is substring 1 in java?

1153


Explain the transient field modifier?

1036


Explain the differences between static and dynamic variables?

1143


What is meant by interface?

1049


What is currentthread()?

989


What is sorting in java?

984