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 statis block and static
variable

Answer Posted / ravikiran

static block is used to initialize the variables during the
Jvm start up.
static variable is used to declare the class level
variables whose value remains ame for the whole class.

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is classpath?

955


What checkbox method allows you to tell if a checkbox is checked?

945


Can we have any code between try and finally blocks?

966


What is compiler and what its output.

1076


What is use of super keyword?

915


What is callablestatement? How you can call stored procedure to pass in parameter?

980


What is the largest long allowed by java?

1005


What is the use of beaninfo?

980


What are the special characters?

927


What is double parsedouble in java?

958


I want to persist data of objects for later use. What is the best approach to do so?

1000


Why javac is not recognized?

893


What is linked hashset and its features?

992


Why webdriver is an interface?

993


What are daemon Threads in java?

1128