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 basic syntax?

1003


What is an inner class in java?

924


Write a java program to generate fibonacci series ?

1033


Which is bigger double or float?

926


In java, what is the difference between method overloading and method overriding?

1073


What restrictions are placed on method overriding?

1133


What is the difference between compile-time polymorphism and runtime polymorphism?

952


Do you need to import math in java?

957


What is port number in java?

1004


Can we declare the static variables and methods in an abstract class?

955


How many types of methods are there in java?

967


What is boolean strategy?

1096


How is a structure different from array ?

1006


What is parsing a string?

1113


How do you check if an arraylist is not empty?

1074