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

How can we make a class virtual?

1179


What is exception propagation?

1184


Explain purpose of sleep() method in java?

1168


What is JVM and is it platform independent?

1103


Is array a class?

994


What is internal iteration in java se 8?

1255


What is passing value java?

1103


What is memory leak and how does java handle it?

1026


Difference between predicate, supplier and consumer ?

1108


How to compare strings in java?

1095


What an i/o filter?

1081


What is difference between iterator access and index access?

1108


What is illegal identifier in java?

1073


Is char a method in java?

1123


What is sortedset in java?

1069