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 basic concept of static in java ?

Answer Posted / narayanarao bp

Static means one per class, not one for each object no matter how many instance of a class might exist. This means that you can use them without creating an instance of a class.Static methods are implicitly final, because overriding is done based on the type of the object, and static methods are attached to a class, not an object. A static method in a superclass can be shadowed by another static method in a subclass, as long as the original method was not declared final. However, you can't override a static method with a nonstatic method. In other words, you can't change a static method into an instance method in a subclass.

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a java program that prints all the values given at command-line.

982


What does the exclamation mark mean in java?

1184


How to do a true java ping from windows?

1070


Write a program to print all permutations of string?

1076


What is the difference between error and an exception?

1077


Can an interface be final?

983


Explain the differences between abstraction and encapsulation?

1012


How do you do exponents in java?

994


What are kinds of processors?

941


What are the rules for naming an array?

1007


Variables used in a switch statement can be used with which datatypes?

947


What is hashtable and explain features of hashtable?

955


Why singleton is not thread safe?

950


What is an escape character in java?

985


Why is a string immutable?

949