What happens when a main method is declared as private?
Answer Posted / harsha
When a method is declared as private, the program compiles
properly but it will give runtime error ?Main method not
public"
Is This Answer Correct ? | 111 Yes | 8 No |
Post New Answer View All Answers
What are three ways in which a thread can enter the waiting state in java programming?
What is classes in java?
How to display all the prime numbers between 1 and 100
What is the difference between length and length() method in java?
How do I stop concurrentmodificationexception?
Which variables are stored in stack?
What are thread safe functions?
Why is it called a string?
What is the difference between preparedstatement and statement in java?
What is update method called?
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..
What is linkedlist in java?
Can an arraylist be empty?
What is the java project architecture?
What is externalizable?