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 does 3 dots mean in java?
What is the basic difference between string and stringbuffer object?
What is hashmap and map?
Why a dead thread occurs?
Why 1 is not a prime number?
How to create an immutable class?
Is there any limitation of using inheritance?
Can one thread block the other thread?
What is oop in java?
What are different types of constants?
How do you define a parameter?
Explain creating threads by extending thread class ?
What is the difference between iterator and enumeration ?
What is default constructors?
design an lru cache in java?