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

why an outer class cannot be declared as private?

Answer Posted / ravi kumar

private class PrivateClass //You cannot use private here
{
}


class TestClass //This is valid
{
}
}
This is because, in above example, if you declare PrivateClass as private then it's private to what? As Vijay said, it is of no use. So, intellisense intelligently doesn't show 'private' .

also another thing that private class can not be instantiate means u can not create object that class then what will be use of that class

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does method mean?

980


What is a void method java?

921


What do you mean by pointer value and address?

1004


Explain the importance of join() method in thread class?

1063


What are 5 boolean operators?

1114


What happens if we don’t define serial version uid?

987


Highest level event class of the event-delegation model?

3963


What is double parsedouble in java?

972


What is the tradeoff between using an unordered array versus an ordered array?

1175


Can private members of a base class are inheritable justify?

877


How many bits are in a sentence?

1098


What is http client in java?

1034


What is natural ordering in java?

906


What is parsing and its types?

1041


When can you say a graph to be a tree?

1041