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 does n mean?
Which variables are stored in heap?
Why is string builder not thread safe?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
What are scriptlets?
Which object oriented concept is achieved by using overloading and overriding?
Why are parameters used in functions?
What is the use of accept () method in java?
Can a class be final?
What is the use of using enum to declare a constant?
Explain what are final variable in java?
What are the skills required for core java?
How to write custom exception in java?
Explain aggregation in java?
How big is a 64 bit float?