class test
{
private static void main(String []adsf)
{
}
}
explain me that the above code is error or exception
Answer Posted / bhargava
Code will throw exception. Because usually every stand
alone program execution should start with main method. It
should be public other wise this method doesnt exposed to
out side to run.
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
What is hasnext in java?
What is arrays fill in java?
Where can I find jdk in my computer?
What is covariant return type?
How do you convert string to int in java?
How do I stop concurrentmodificationexception?
Why are arrays useful in java?
What are basic keywords?
Is arraylist dynamic in java?
Is namespace same as package in java?
Can we assign integer value to char in java?
What are the types of java?
Why is string builder not thread safe?
What is jagged array in java?
Where is singleton pattern used?