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

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 ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jvm? Why is java called the platform independent programming language?

1076


Can we sort list in java?

1017


How do you convert an int to a double in java?

1110


What are computer functions?

995


What all access modifiers are allowed for top class ?

1240


What is the function of compareto in java?

1113


Are arrays classes in java?

1102


Differentiate between overriding and overloading cases?

1162


Is vector thread safe in java?

1094


How does sublist works in java?

1025


What is float in java?

1035


What is string intern in java?

1086


What is the difference between JDBC 1.0 and JDBC 2.0?

3226


Why null value is used in string?

1093


What does yield method of the thread class do?

1080