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 a super method?
What does ide stand for?
What is a method type?
Does every java program need a main?
Tell me a few examples of final classes defined in Java API?
Can a class have 2 constructors?
What is meant by tab pans?
How do you check if a string is lexicographically in java?
What is float in java?
What do you mean by chromounits in java8?
What is the importance of hashcode() and equals() methods?
What is pass by value?
What do you mean by byte code?
What are synchronized methods ?
explain what is transient variable in java?