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

can we declare private class in java file?

Answer Posted / veerendra

yes,we can declare if it is inner most class, but outer
class is not allowed because java supports inheritance
concept for reusing the properties from super class to sub
class,at that time the super class is private it wont access
inside,only public features we can reuse it, we can access
and execute through out the world, not private with in the
class onle we can access it.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a private class in java?

1057


Explain about the dynamic behavior of core java?

1141


How many bytes is a unicode character?

1008


What is the use of using enum to declare a constant?

1029


What is ternary operator?

1011


What is identifier with example?

1051


What is this keyword in java?

1035


What is methods and methodology?

1030


What is a method vs function?

1047


What is close method? How it's different from Finalize & Dispose?

1067


How do you download stubs from Remote place?

1792


What is the right data type to represent a price in java?

960


What is the purpose of a transient variable?

1072


Why for each loop is used?

1014


I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?

1016