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

nested classes can be decalred as private and they can be accessed by its siblings and by their parent.

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does sublist works in java?

979


What is the length of a string?

1028


Is java a virus?

963


What is the use of flag?

1094


Why string is not a wrapper class?

1190


What is equlas() and hashcode() contract in java? Where does it used?

1139


Explain public static void main(string args[]) in java.

995


I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?

1108


What is charat java?

982


What is the purpose of static methods and variables?

1047


What is a predicate method?

1025


What is the disadvantage of java?

959


What data type is a string?

1019


What are the differences between getting and load method?

1200


What is the inheritance?

977