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 static and non-static
variables?

Answer Posted / ravikiran

static variables are class variables and the values remains
same fr the whole class
nonstatic variables are of two kinds
global variables:are the variables which defines variables
which can be accesible over the whole class
local variables:the scope of local variables is with tin
the method only

Is This Answer Correct ?    29 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of stub and skeleton?

955


What is thread safe java?

868


Can a constructor be private and how are this() and super() method used with constructor?

936


What is the major drawback of internal iteration over external iteration?

968


What is the difference between inheritance and encapsulation?

1091


Explain java coding standards for methods?

981


Why char array is preferred over string for storing password?

1033


What is Session reduplication and how its done?

1981


How do you square a number?

1166


Difference between a process and a program?

1057


What's the difference between an abstract class and interface in java?

974


Explain the importance of finally block in java?

905


How we can run a jar file through command prompt in java?

912


Can we have any code between try and catch blocks?

928


Is main is a keyword?

946