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

What is the default value of byte datatype in java?

936


What is %d in printf?

1041


What happens if main method is not static?

1000


What exactly is methodology?

924


What will be the default values of all the elements of an array defined as an instance variable?

1030


How do you implement polymorphism in our day to day life?

3233


What is nested interface?

1010


Difference between == and .equals() ?

1002


List some oops concepts in java?

1035


Difference between class#getinstance() and new operator ?

1210


How do I stop concurrentmodificationexception?

1032


Can I use % with real numbers?

1022


What are the benefits of operations in java?

1052


Why pass by reference is not possible in java?

1044


What is time complexity algorithm?

1050