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 / aditya kumar

yes,from Java8 we can also declare private and protected Top level classes.....but i am not getting the reason behind this why oracle did it.So if any one has it's explanation plz tell me....

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use string tokenizer class.

1213


What is Enum in Java?

1318


Which package has light weight components in java programming?

1148


What is the use of inner class?

1046


Explain heap sort?

1125


Explain the private protected method modifier?

990


Can you explain the final method modifier?

1013


What are singleton services?

918


What are different access specifiers in java? Explain

1130


What are three advantages of using functions?

1013


Is .net better than java?

1017


What is data type in computer?

965


Explain public static void main(string args[]) in java.

995


How hashset works internally in java?

1099


What’s meant by anonymous class?

1088