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 a static block?

Answer Posted / srinivasa

Static block is executed when the class is loaded into the
memory before the main(). Only once it will be executed.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?

1033


What is a stringbuilder?

893


What do you mean by exception handling in Java?

1272


How to read and write image from a file ?

1033


Describe what a thread-local variable is in java?

996


Why singleton is not thread safe?

978


Is it possible to compare various strings with the help of == operator?

973


What are the two types of streams offered by java 8?

913


What do you understand by casting in java language?

1017


What is classes in java?

923


Is null a string?

979


What is a condition in programming?

996


Can extern variables be initialized?

932


What do you mean by synchronized non access modifier?

980


Explain about collection interface in java?

969