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

In Inheritence concept, i have a static method in super
class and i am inheriting that class to one sub class.in
that case the static method is inherited to sub class or
not????

Answer Posted / dhawal

first understand meaning of static keyword,when we use
static keyword before any data type or before method then
single copy of that method or variale crated in memory,and
use that copy for only that particular class,means as far my
knowledge we can not use static method in subclass.

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need data serialization?

934


What is method overloading and method overriding?

1012


Is there a jre for java 11?

1016


Can we override final method?

948


What is a 16 bit word?

950


What is the difference between length and size in java?

943


What are the types of java?

1041


Explain features of interfaces in java?

945


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

957


What are "class access modifiers" in Java?

1065


What are different type of exceptions in java?

928


What is difference between array and arraylist in java?

947


What is the technique adopted to create an immutable class?

1051


What is the difference between interface & abstract class?

993


which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?

11003