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 object of class in java?

1127


Why string is not thread safe?

1010


What is a void in java?

1175


Can you declare an interface method static?

1065


Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?

988


What is Java Package and which package is imported by default?

1097


What java is used for?

1079


What are the differences between the constructors and methods?

1126


What are the high-level thread states in java programming?

1059


What is the difference between hashmap and hashtable in java?

1125


What is the symbol for average?

1030


what state does a thread enter when it terminates its processing? : Java thread

1053


What is a private class in java?

1056


How do you define a set in java?

1023


Explain the difference between collection api and stream api in java8?

980