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 does n mean?

714


Which variables are stored in heap?

768


Why is string builder not thread safe?

836


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

942


What are scriptlets?

834


Which object oriented concept is achieved by using overloading and overriding?

810


Why are parameters used in functions?

719


What is the use of accept () method in java?

822


Can a class be final?

706


What is the use of using enum to declare a constant?

782


Explain what are final variable in java?

799


What are the skills required for core java?

767


How to write custom exception in java?

817


Explain aggregation in java?

742


How big is a 64 bit float?

767