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 do you mean by thread safe?
What is a line break example?
What is a instance variable?
Can You Have Virtual Functions In Java?
What is Garbage Collection in Java
What is object class in java?
What is the difference between a local variable and an instance variable?
Is java same as core java?
What is JVM and is it platform independent?
How to perform linear search in java?
What is an abstract class and what is it’s purpose?
You're given a Boolean 2D matrix, can you find the number of islands?
Can we execute a program without main?
Why do we need hashset in java?
When is the finalize() called? What is the purpose of finalization?