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 return in java?
Name few "optional" classes introduced with java 8 ?
What are java threads?
Is 0 a prime number?
What do you mean by local variable and instance variable?
How do you convert string to int in java?
What are the procedures?
List some important features of java 10 release?
Can you change array size in java?
How do listeners work?
What does exclamation mean in java?
What is string in java with example?
According to java operator precedence, which operator is considered to be with highest precedence?
How do you implement tree mirroring in java?
What is skeleton and stub? What is the purpose of those?