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

Can you inherit a constructor java?

1029


What are the difference between composition and inheritance in java?

973


What is a finally block?

935


What is final, finally, finalize?

1037


What is the main method java?

978


How is string immutable in java?

998


What is a variable simple definition?

978


Can we synchronize static methods in java?

1047


Is null false in java?

1149


Is java 9 released?

953


how we can create packages in java?

921


Can we use catch statement for checked exceptions?

923


Can we use a default constructor of a class even if an explicit constructor is defined?

1056


What are void methods?

981


What are the two parts of a conditional statement?

920