can we declare private class in java file?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / varsha vilas kalebag
yes we can declare private class in java file
| Is This Answer Correct ? | 46 Yes | 131 No |
What is Vector?Can you elaborate how Vector is Thread safe?
What is a ternary operator in java? What is an interface?
What are integer overflows and underflows and how to handle them?
How will you measure that int takes up only 32 bits in memory?
What is a numeric digit?
Explain differences between collection api and stream api?
Can we convert integer to string in java?
Can inner class have constructor?
Is alive method in java?
primitive data types in Java ?
why an outer class cannot be declared as private?
What is the difference between static class and normal class?