Answer Posted / honey
main class can not be make private in java ,only the nested class can be make privateand it can be assessable only in the main class not access by any other class in the package.
| Is This Answer Correct ? | 13 Yes | 3 No |
Post New Answer View All Answers
Similarity and difference between static block and static method ?
What is void data type?
What all methods are used to prevent thread execution ?
How many types of parsers are there?
What is the role of the java.rmi.naming class?
What is the use of generics? When was it added to the Java development Kit?
What is a layout manager and what are different types of layout managers available in java awt?
What is an exception? difference between Checked and Unchecked exception in Java
What are assembly attributes?
Why is java logo a cup of coffee?
can used Protected Class outside Function.?
When arithmeticexception is thrown?
Why Java doesn’t support multiple inheritance?
What do you understand by copy constructor in java?
Why is core java important?