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
What is a method declaration?
What value is a variable of the string type automatically initialized?
Can constructor be protected in java?
What does arrays sort do in java?
What are the three types of design patterns?
What are the differences between Java 1.0 and Java 2.0?
How do you represent a space in regex java?
How do you convert an int to a string in java?
When does a class need a virtual destructor?
What does it mean to be immutable?
How do you get the length of a string in java?
Difference between arraylist and vector.
Can a method be static?
What is scope & storage allocation of global and extern variables? Explain with an example
What is stack explain?