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

What is difference between variable declaration and definition?

913


What are methods and how are they defined?

1133


Explain purpose of sleep() method in java?

1055


Does sprintf allocate memory?

1039


If I only change the return type, does the method become overloaded?

873


What are the 2 types of java programs?

1045


What type of value does sizeof return?

950


What is the difference between hashset and treeset in java?

1000


How to calculate the length of a singly linked list in java?

960


What is append in java?

1087


In a class implementing an interface, can we change the value of any variable defined in the interface?

1022


How many bytes is a string java?

961


What is singleton class and how can we make a class singleton?

1056


What is the difference between a loader and a compiler?

970


Why are functions called methods in java?

943