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
Explain list interface?
Can a final variable be null?
What is the purpose of format function?
What are the differences between string, stringbuffer and stringbuilder?
Why main function is static?
What are the differences between checked exception and unchecked exception?
How do I remove a character from a string in java?
Give me example of derived data types.
Is class is a data type?
How a string is stored in memory?
Explain thread in java?
What is integer valueof?
What are constants and how to create constants in java?
How would you dynamically allocate memory to an array?
What is constant in programming?