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 / sankesh sinha

yes it occur when class is inner, top level class not be
private bcoz jvm will not able to compile.

Is This Answer Correct ?    9 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is command line used for?

1096


What is javac used for?

938


What is meant by overloading?

1073


Name few java.lang classes introduced with java 8 ?

995


How do constructors use this() and super()?

1125


Can we execute a program without main?

1031


What is thread pool in java with example?

1013


How does varargs work in java?

1103


Can we override compareto method?

948


What is meant by data hiding/encapsulation?

1107


What is vector capacity in java?

1091


What is callablestatement? How you can call stored procedure to pass in parameter?

1025


What is abstract class? Explain

1051


What is equlas() and hashcode() contract in java? Where does it used?

1139


Which collection is thread safe in java?

1000