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
Does .length start 0 java?
Difference between class#getinstance() and new operator ?
Is array passed by reference in java?
Is ++ operator thread-safe in java?
What is java in detail?
What is keyword and identifier?
What is the use of toarray () in java?
What is a null point?
Which programming language is best in future?
What is meant by design patterns?
Is minecraft 1.15 out?
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
What types of index data structures can you have in java?
Can we create a constructor in abstract class?
What is a condition in programming?