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 an exception in java?
What is string in java?
How do I get the | symbol on my keyboard?
Which is better arraylist or vector?
What’s the difference between unit, integration and functional testing?
Why is stringbuffer not immutable?
What is a ternary operator in java? What is an interface?
Does windows 10 need java?
What is dynamic array in java?
What happens when a thread cannot acquire a lock on an object in java programming?
Can a constructor have different name than a class name in java?
Can you instantiate the math class?
When super keyword is used?
Is upper case in java?
Is linkedlist thread safe in java?