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 loop means?

950


How many ways can you break a singleton class in java?

979


Define an enumeration?

1035


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

925


What is the nested interface?

1103


Why vector is used in java?

1023


What is string substring?

1162


How can you generate random numbers in java?

1047


What is mutable object and immutable object?

1123


Why is method overloading not possible by changing the return type in java?

1000


What is tcp ip in java?

1105


What is the difference between logical data independence and physical data independence?

1029


How do you replace a string in java?

1001


What is a conditional statement explain with example?

1011


How do you compare two objects?

932