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 / eknath wagadre

private and static keyword in java we can't use those
keyword any of the outer block. we can use those keyword
only and only inside of the block.(Block i.e Class )

NOTE: Outer class can't be private but inner class can be
private(bcz of this is the part of the outer class and also
inner class can be static.)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Will the jvm load the package twice at runtime?

1147


What is arrays sort in java?

1019


What is rule of accessibility in java?

1076


How does the garbage collector works in java?

1142


Why do we need singleton class?

1044


What is externalizable interface?

1140


What is the use of volatile in java?

1104


What is return code?

1057


What are advantages of using Java?s layout managers than windowing systems?

2425


What is a get method?

1125


How use .contains in java?

1224


Which is best ide for java?

1090


Why charat is used in java?

1102


Are maps ordered java?

998


What an i/o filter?

1081