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
Which browsers work with java?
What is gc()?
How do you reverse sort a list in java?
Why main() method is public, static and void in java ?
Explain the significance of class loaders in bootstrap?
Why heap memory is called heap?
How many java versions are there?
What is the memory leak in java?
Difference between final and effectively final ?
Why main function is static?
what is singleton class in java?
What is string pool?
What are synchronized methods and synchronized statements in java programming?
What is meant by memory leak?
What is __ init __ functions?