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 |
Package1 and Package2 both have a method name lets say "methodA" with different implementation. When I import both the packages in a java class how can I use both the methods?
How can you take string into InputStream?
Diff between Comparator and Comparable?
What is the difference between static method and instance method in Java?
0 Answers SwanSoft Technologies,
What is classname class in java?
wht is customised exception?
1 Answers Logica CMG, Novell, Prudential,
When should I use stringbuffer?
What advantage does an entity bean have over a sessin bean?
IS method overriding is Duplication of Methods?
What is a J2EE component? List out all the component?
How many days will it take to learn java?
Explain about collection interface in java?