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

Static variables are those variables that are declared with
static keyword of java.Static variables are declared once
into a class and are available entire class.Static variables
are common to all objects of class.Static variables can be
accessed by non-static methods.Whereas Static methods are
those which are declared with static keyword and can only be
accessed static variables.If we have Static method then we
can call it directly with class_name.And static variables
and methods both are related to class,whereas non-static
variables and methods are related to object.

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 difference betweem home interface and remote interface?

2634


How to calculate the length of a singly linked list in java?

1037


Explain some best practices you would apply while using collection in java?

1037


What do you understand by casting in java language?

1029


What is the synonym of string?

1095


What is the difference between yield() and sleep()?

1017


How would overload a function based on return type?

970


Is age a discrete variable?

977


What is the static field modifier?

1130


How to display arraylist values in java?

1010


What are the special characters?

972


What is boolean strategy?

1134


Explain the difference between an object-oriented programming language and object-based programming language?

986


Why parameters should be passed by reference?

972


what is mena by object block any what is the use of that

2216