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

Explain the differences between public, private, protected
and static?

Answer Posted / manne ranjith

public-->inherite the protected members as preotected in
drived class and pubic members wiull be public in derived
class

protected--->pubic and protecated members of the base class
will become protected in derived class

Private-->pubilc and proteacted members will become private
in derived class

static--->Method is defined by static cannot access non-static
members or fields of that class. But non-static members can
access static fields or methods.

Is This Answer Correct ?    28 Yes 32 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is method with example?

1186


What is a get method?

1134


What is type safety in java?

1001


When is the finally clause of a try-catch-finally statement executed?

1141


Distinguish between a predicate and a function?

1048


What is classpath?

1068


What do you mean by pointer value and address?

1095


What is difference between word and integer?

1137


What is a finally block? Is there a case when finally will not execute?

1156


What is the difference between inheritance and encapsulation?

1200


What is the difference between a factory and abstract factory pattern?

1200


How many bytes is a unicode character?

1063


How many types of voids are there?

1025


What is the default size of set in java?

1026


What one should take care of, while serializing the object?

957