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 static variable and static method?

Answer Posted / aravind

a variable declared inside a method is local to that method.
it can't be accessed outside the method. if a variable
declared in a class means its a global variable.if we
declare a variable with static keyword in a class means it
can be accessed by all the class.

Is This Answer Correct ?    18 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why does my function print none?

946


Why Java doesn’t support multiple inheritance?

1033


Why does java not support pointers?

1087


Can we inherit inner class?

1008


Explain the difference between abstraction and encapsulation.

969


What is difference between string and new string?

1029


Is java a compiler?

971


What is better - 'bit-shift a value' or 'multiply by 2'?

1184


Can we assign integer value to char in java?

1026


What is a line break?

1025


Can You Have Virtual Functions In Java?

1136


What are latest features introduced with java 8?

1071


What is a method header?

1013


What is the public method modifier?

1007


Can a variable be local and static at the same time?

996