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 will happen to the exception object after exception handling?
What are different access specifiers in java?
using equals method overriding which objects are compared?i.e same class objects or other class objects?Explain me.
what is class.forname() and how it will be useful ?
Can we have multiple classes in single file ?
What are java packages? What is the significance of packages?
How many threads can java run?
Explain tree set and its features?
What is a parent class in java?
What is the unit of plancks constant?
Explain java coding standards for methods?
can I implement my own start() method? : Java thread