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 two classes are used to read data only?

1044


Can we define constructor in inner class?

954


What is a qualifier in a sentence?

941


What are the advantages of unicode?

978


What are the actions that can occur when a thread enters blocked state?

1014


What is matcher in java?

946


why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

944


Why stringbuilder is not thread safe?

972


Using callable statement how can you pass out parameters, explain with example?

1179


String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

929


What is the output of the below java program?

995


Explain the use of javap tool.

1100


What do you mean by inner class in java?

1023


Can we call virtual funciton in a constructor ?

2144


What do you understand by access specifiers in Java?

970