What happens when a main method is declared as private?
Answer Posted / subha narayan mohapatra
it will generate an error message because main() method is
the start or execution point in our java program.
Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
How does split work in java?
What is variable and its types?
why not override thread to make a runnable? : Java thread
What are the differences between stringbuffer and stringbuilder?
Can we pass a primitive type by reference in java? How
Can we use a switch statement with strings?
How do you input a string in java?
Can private method static?
What does int [] mean in java?
Can substring create new object?
Is math an abstract class in java?
Why chararray() is preferred over string to store the password?
What is difference between checked and unchecked exception in java?
What does @override mean?
What is the parse method in java?