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
What is the protected method modifier?
Write code to implement bubble sort in java?
What is enhanced loop in java?
What java ide should I use?
Is null keyword in java?
How to declare objects of a class ?
What is rmi and steps involved in developing an rmi object?
What is the purpose of an interface?
what do you understand by synchronization? : Java thread
Can arraylist hold different types java?
What is compiler and what its output.
Where is singleton pattern used?
Java Compiler is stored in JDK, JRE or JVM?
What is the purpose of a parameter?
What are accessor methods in java?