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 is an example of procedure?

1027


What is the difference between Grid and Gridbaglayout?

1234


Wha is the output from system.out.println(“hello”+null); ?

1136


What is a default constructor and also define copy contrucyor?

1097


What is a parameter used for?

955


When should I use singleton pattern?

1014


In case of inheritance what is the execution order of constructor and destructor?

1123


What is the exact difference in between Unicast and Multicast object? Where will it be used?

1049


How does sublist works in java?

964


What is the purpose of static methods and static variables?

1067


What is javac_g?

1012


Explain the transient field modifier?

1033


Differentiate between overriding and overloading cases?

1098


What is bufferedwriter?

970


What exactly is a .class file?

1042