class test
{
private static void main(String []adsf)
{
}
}
explain me that the above code is error or exception
Answer Posted / sri
It will not generate any compile time error, but while
running the program it will generate the output as "main
method is not public".....
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is nested top-level class?
what is synchronization and why is it important? : Java thread
What is final variable?
Does isempty check for null?
What is the purpose of extern variable?
Why vector is used in java?
What is a finally block?
Difference between arraylist and vector.
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
What is the program compilation process?
How to compare strings in java?
Which is easier .net or java?
What is a local block?
How we can generate random numbers in java?
Explain about serializable interface in java?