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

can used Protected Class outside Function.?

1062


What is the difference between method and means?

1027


What is object in java?

928


What is the importance of main method in Java?

1021


What is the primitive type short?

982


Explain the importance of thread scheduler in java?

959


Distinguish between a predicate and a function?

944


Can substring create new object?

1066


Why string is not thread safe?

965


What are different data structures in java?

977


Can you achieve runtime polymorphism by data members?

1082


What are the types of inner classes (non-static nested class) used in java?

1019


how to deploy tomcatserver to weblogic server? write d following steps?

1918


How many bytes is 255 characters?

930


What is integer parseint?

936