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
How will you initialize an Applet?
Can we have multiple classes in a single file?
What is hash table in java?
What is the benefit of singleton pattern?
What’s the difference between callable and runnable?
Why for each loop is used?
What are the advantages and disadvantages of reference counting in garbage collection?
What is a function argument in java?
Explain where variables are created in memory?
Why is it important to initialize a variable?
What are the different approaches to implement a function to generate a random number?
How can we use primitive data types as objects?
What is byte value?
Explain differences between checked and unchecked exceptions in java?
What do you mean by checked exceptions?