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 vs function?
Give an example of call be reference significance.
Explain tree set and its features?
What is the use of set in java?
What is method reference?
What is %d in printf?
What is encapsulation in java?
Can we override tostring method in java?
Can we use string in the switch case?
What is thread life cycle in java?
What is join () in java?
Is java a digit method?
What is object in java?
Does java initialize arrays to zero?
Can we have two main methods in a java class?