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


Please Help Members By Posting Answers For Below Questions

What is a super method?

538


What does ide stand for?

533


What is a method type?

546


Does every java program need a main?

548


Tell me a few examples of final classes defined in Java API?

572






Can a class have 2 constructors?

510


What is meant by tab pans?

656


How do you check if a string is lexicographically in java?

505


What is float in java?

571


What do you mean by chromounits in java8?

532


What is the importance of hashcode() and equals() methods?

591


What is pass by value?

521


What do you mean by byte code?

525


What are synchronized methods ?

628


explain what is transient variable in java?

636