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...


Are static members inherited to sub classes?



Are static members inherited to sub classes?..

Answer / Ishant Tyagi

"Static members are not directly inherited by subclasses in Java, but they can be accessed through the superclass reference. Static members belong to the class instead of the instance, so they have their own existence independent of any objects created from the class. If a subclass defines its own static member with the same name as a static member in its superclass, then the subclass's static member hides the superclass's static member."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

what is difference between Exception and Error?

36 Answers  


How do you sort an array in java?

1 Answers  


What interface is extended by awt event listeners?

1 Answers  


Why collection is called framework in java?

1 Answers  


Explain importance of finally block in java?

1 Answers  


What is an arraylist in java?

1 Answers  


What is outofmemoryerror in java?

1 Answers   Cyient,


What is flush buffer?

1 Answers  


What is an object in Java and what are its benefits?

4 Answers   IBM,


what is stringtolennizer with example?

2 Answers   Symphony,


How do you define a parameter?

1 Answers  


What is the relationship between class and object?

1 Answers  


Categories