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

Difference between string s= new string (); and string s = "abv";?

1157


What is the difference between jfc & wfc?

1012


Wha is the output from system.out.println(“hello”+null); ?

1084


Can a class be final?

897


What do you mean by formatting?

937


What is the size of arraylist in java?

973


Explain what do you mean by functional overloading in java?

950


How do you represent a space in regex java?

956


What is difference between printf and scanf?

1039


What is the requirement of thread in java?

993


What is the use of volatile in java?

995


How do I get a substring?

926


What is mean by exception?

960


Does sprintf add a null terminator?

1035


Why do we use bufferedreader?

914