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 are the different data types in java?
What is a substitution variable?
What are different types of access modifiers?
List the interfaces which extends collection interface?
What is data type in computer?
any other way to print the text without using System.out.println() in java?
What are the restriction imposed on a static method or a static block of code?
Why synchronization is important in java?
What is the use of Getters and Setters method ?
How to access a method that it declared as protected?
Can we have static methods in an interface?
what state does a thread enter when it terminates its processing? : Java thread