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 / ramakrishna

Static block is the block which is executed first in the
program. Static variable is the common variable which is
shared by all the objects. Static variable is not specific
to any object.

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are actual parameters?

1090


When does a class need a virtual destructor?

1064


What is the purpose of static methods and variables?

1081


What is the purpose of extern variable?

1057


What is the purpose of format function?

1233


What is function and its uses?

1174


What are strings in physics?

1069


Why we override equals() method?

1080


Name few java.lang classes introduced with java 8 ?

1041


Explain the difference between an object-oriented programming language and object-based programming language?

1018


What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?

2548


What is the difference between size and length in java?

1019


What are the important features of Java 10 release?

1031


what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread

1156


How many bits is a 64 bit byte?

1136