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 / sivaramakrishna bandaru

static method or a variable is not attached to a particular
object, but rather to the class as a whole. They are
allocated when the class is loaded. Remember, each time you
call the instance the new value of the variable is provided
to you.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between preparedstatement and statement in java?

1166


What is sortedmap in java?

1034


Why char array is preferred over string for storing password?

1106


Explain spliterator in java8?

1049


What is the effect of keeping a constructor private?

951


Why does abstract class have constructor?

1005


Discuss about garbage collector in Java.

1080


What are the 3 types of control structures?

1017


What is the use of isempty in java?

1028


Does java set allow duplicates?

1087


What is a class in java?

1012


Why is a string immutable?

1013


Write code of any action class?

1017


What is set in java?

1049


What class allows you to read objects directly from a stream?

1321