class A
{
class B
{
psvm(String args[])
{
}
}
}
if the prg saved in A.java whats the o/p?
Answer Posted / amulkumar
Compiletime Error saying----
The method main cannot be declared static; static methods
can only be declared in a static or top
level type
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What is literal example?
What is difference between ++ I and I ++ in java?
Write a program to print count of empty strings in java 8?
what is thread? What are the high-level thread states? : Java thread
Can constructor be static or final?
What is the type of lambda expression?
How to solve the problem of generating the unique hash keys with hash function?
Is java free for businesses?
What is the difference between stringbuffer and stringbuilder class?
What is ++ a in java?
Implement two stacks using a single array.
What are wrapped classes in java programming?
What is the core java?
How do you achieve singleton?
Where is const variable stored?