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 thread pool? How can we create thread pool in java?
In java, how many ways you can take input from the console?
How will you print number in reverse (descending) order in BST.
What are the differences between forwarding () method and sendredirect() methods?
What is used of static keyword in java?
Define a java class.
What is the difference between preparedstatement and statement in java?
Explain the protected field modifier?
Does treeset allow null in java?
Can a static class have a constructor?
What are the pillars of java?
Why do I need to declare the type of a variable in java?
Why is singleton instance static?
Why set is used in java?
How can constructor chaining be done by using the super keyword?