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

What is the size of int in 64-bit jvm?

1099


who can i handle multiple client in RMI

1900


What is the size of arraylist in java?

1030


Give any two differences between C++ and java.

1150


How do you check if a string contains only numeric digits?

1122


What are the classes of java?

970


What is a lock or purpose of locks in java?

1030


Is null a value?

1043


Is char a method in java?

1072


What is meant by class and object in java?

1046


Why we use methods in java?

1003


What is the size of int?

1085


what methods would you overwrite in java.lang.object class?

1006


Explain about assignment statement?

1030


What are the types of methods in java?

1118