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 is an interface be able to extend more than one interface but a class can’t extend more than one class?

1110


Write a program in java to create a doubly linked list containing n nodes.

907


What programs use java?

881


How is it possible in java programming for two string objects with identical values not to be equal under the == operator?

973


How do you compare characters in java?

920


Can a singleton class be inherited?

907


Write code to implement bubble sort in java?

944


What sorting algorithm does javascript use?

934


what is the constructor and how many types of constructors are used in java?

947


What is the use of coding?

911


How do you reverse a string in java?

1057


How to perform binary search in java?

945


What is compareto () in java?

909


What does s mean in regex?

954


Why we use multi threading instead of multiprocessing?

1000