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

yes,but it is declare to inner class,not to outter class.if we are declaring "private" to outter class nothing can be accessaed from that outter class to inner class.

Is This Answer Correct ?    15 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the association?

988


Explain the purpose of garbage collection in Java?

1034


Can array grow dynamically in java?

988


What is the size of a string in java?

1015


What is a void method java?

965


What is the purpose of tostring() method in java?

1160


Is ++ operator thread-safe in java?

1191


What is object in java?

993


Explain the difference between protected and default access.

1004


What is the preferred size of a component in java programming?

1004


Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?

1062


Write a function for palindrome and factorial and explain?

1080


What is anonymous inner class?

1085


Explain working of call by reference function invoking.

1029


Why is static used?

1036