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

How do you reverse a string in java without using string buffer?

1085


What is the difference between an interface and an abstract class?

994


How do you identify if jvm is 32-bit or 64-bit from java program?

957


What’s meant by anonymous class?

1074


What do you mean by stream pipelining in java 8?

1211


When is the finalize() called?

1166


If an object reference is set to null, will the garbage collector immediately free the memory held by that object?

1140


Is java an open source?

966


How can we create an immutable class in java?

1058


What is are packages?

1027


What do you mean by an object in java?

1122


what is recursion in java

1161


what is the purpose of "virtual"?

1072


What are the string methods in java?

1079


Explain treeset?

1103