class test
{
private static void main(String []adsf)
{
}
}
explain me that the above code is error or exception
Answer Posted / xavier
This will throw a runtime error stating main method not public
This is because main method is the starting point of program
execution and it should be accessible by JVM
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the relationship difference the canvas class and the graphics class?
What is the list interface in java programming?
How do you use compareto method?
What is ascii code?
What is the difference between jfc & wfc?
what is the difference between future and callable interface in java?
Explain the pointers in Java?
What is difference between hashset and hashmap?
Why a dead thread occurs?
What is the difference between hashmap and hashtable in java?
What is the importance of hashcode() and equals() methods?
Where to store local variables?
What is dynamic binding(late binding)?
Is there any limitation of using inheritance?
How java enabled high performance?