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 / ranganathkini

A class can be marked by the "private" access specifier only
if its a nested member of another class.

Top level classes cannot be marked as "private". Hence you
can have private classes in a java file but they must be
nested inside another class.

Is This Answer Correct ?    208 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is empty set an element of empty set?

1108


What are memory tables?

1097


Which methods are used during serialization and deserialization process?

991


What is output buffer?

1056


Is cout buffered?

1188


What is difference between java and java ee?

1037


How do you escape a string?

993


What is string and its types?

1188


What is getkey () in java?

1013


What is meant by binding in rmi?

1015


Why do we declare a class static?

1157


Explain about narrowing conversion in java?

1014


Define inheritance?

1021


What is an infinite loop?

1259


What are the advantages of arraylist over arrays?

1093