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

Mention some interfaces implemented by linked list in java.

1076


Can we change the scope of the overridden method in the subclass?

1455


What is procedure overloading?

2363


Can a class have multiple superclasses?

1240


What is the use of predicate in java 8?

1012


What is a Presistent Object?

1288


What is field name?

1074


What are the important features of Java 11 release?

1160


What is difference between protected and private?

1141


Who developed java?

1055


Define jit compiler?

1203


What exactly is a .class file?

1095


which pattern is default in scanner package?

2266


What are the different types of inner classes?

1076


Explain the advantages of packages in java?

965