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

extending thread class or implementing runnable interface. Which is better? : Java thread

1044


What is the meaning of immutable regarding string?

1009


What is variable declaration and definition?

1061


What does exclamation mean in java?

1181


how can you take care of mutual exclusion using java threads? : Java thread

1097


What is the benefit of singleton pattern?

1049


How to change value in arraylist java?

1247


What is difference between arraylist and list in java?

1131


What is use of static method?

1097


This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }

1043


What is the difference between hashmap and hashtable? What is an interface?

1234


What is bytecode in java ?

1252


What is the use of private static?

1092


How is string immutable in java?

1084


Which api is provided by java for operations on set of objects?

1525