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 difference between hashset and hashmap in java?
What is the concept of multithreading?
Explain abstract class in java?
How many bytes is a char in java?
What is one third plus one third as a fraction?
How do you sort in ascending order in java?
What are the differences between throw and throws?
What is use of static method?
What is args length in java?
Why call by value prevents parameter value change?
What do you mean by garbage collection used in java?
Can substring create new object?
What is a boolean output?
Why is the singleton pattern considered to be an anti pattern?
How to reverse string in java?