What happens when a main method is declared as private?
Answer Posted / thiru
The default signature should not be altered. If any changes, at run time "Class xxx does not have main method" exception will be thrown. But compilation will not give any exception.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Differentiate between vector and array list.
What is the difference between a window and a frame in java programming?
What is the difference between && and & in java?
Define nashorn in java8.
What is JVM and is it platform independent?
explain local datetime api in java8?
What is ++ a in java?
What is string data type?
Why java strings are immutable in nature?
make a method which any number and any type of argument and print sum of that arguments.....
What will be the output of round(3.7) and ceil(3.7)?
What are the main differences between the java platform and other platforms?
What is difference overloading and overriding?
What is boolean data type in java?
Is singleton set an interval?