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
Does printwriter create a file?
What is the difference between scrollbar and scrollpane?
How many times finalize method will be invoked? Who invokes finalize() method in java?
Why we do exception handling in java and how many types of exceptions are there?
How do you find the absolute value?
Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?
What is not object oriented programming?
Where are the local variables stored?
Can we write multiple catch blocks under single try block?
Differentiate between stringbuffer and stringbuilder in java.
Why do we need wrapper classes?
What are variable arguments or varargs?
What's the default access specifier for variables and methods of a class?
How does compareto method work?
What do you mean by jjs in java8?