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
Can an interface have a constructor?
What is the tradeoff between using an unordered array versus an ordered array?
What are class types in java?
What is a line break?
What are identifiers in java?
What is meant by stack and queue?
How java uses the string and stringbuffer classes?
Differentiate between a constructor and a method? Can we mark constructors final?
What is udp in java?
How do you start a new line in java?
What are the differences between stringbuffer and stringbuilder?
Why bytecode is called bytecode?
What is an immutable class?
What is a boolean flag in java?
Can this keyword be used to refer static members?