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
Is it possible to use string in the switch case?
What is meant by object oriented programming – oop?
What is class and its types?
How do you create a bulleted list?
What do you meant by active and passive objects?
What is rmi and steps involved in developing an rmi object?
What happens if a constructor is declared private?
What data type is a string?
What are methods and how are they defined?
How is java created?
When arithmeticexception is thrown?
What is array initialization in java?
What kind of variables a class can consist of?
What does microservices mean?
Where and how can you use a private constructor?