What happens when a main method is declared as private?
Answer Posted / yogesh gandhi
The output of the program is
Main method not public.
|Is This Answer Correct ?||72 Yes||5 No|
What is navigable map in java?
What is use of super keyword in java?
what are three ways in which a thread can enter the waiting state? : Java thread
What are the two basic ways in which classes that can be run as threads may be defined?
Why we use set in java?
Explain what access modifiers can be used for methods?
Can we write a class without main method in java?
How will you load a specific locale?
What is meant by tab pans?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
What are the three parts of a lambda expression? What is the type of lambda expression?
Can you explain the final method modifier?
How do you declare a variable?
What is an class?
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?