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
Can we extend singleton class in java?
What is singleton service?
what is object-oriented programming in java?
Explain java code for recursive solution's base case?
Is empty .java file name a valid source file name?
What are the disadvantages of using inner classes?
What are different types of references?
What is a final class in java?
How do you clear an arraylist in java?
What is difference between class and object in java?
What is array list in java?
Is string a class in java?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
What sorting algorithm does javascript use?
What is constant in programming?