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
how to handle exceptions in ejb?
what is the use of bean managed and container managed with example?
Differences between C and Java?
Why Java is not pure Object Oriented language?
What is callable java?
What is java in simple terms?
How to compare strings in java?
Does java have extension methods?
What is stack class in java?
Can we convert list to set in java?
Where can i get Latest SUN Certification Dumps and what are the Sun Certification Codes that are available, Im new to JAVA, so please gimme info as i need to write J2EE - Core Java Certification
Is object a data type?
What is a loop java?
Is 0 true or false in java?
What is an object in java?