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
Explain the scope of a variable.
What is the difference between method overriding and overloading?
Why is static used?
What is a linkedhashmap java?
Can we have a try block without catch block?
What invokes a thread's run() method in java programming?
What is member in java?
Can you create an object of an abstract class?
What are different access specifiers in java?
Give me example of derived data types.
What are the two types of exceptions in java? Which are the differences between them?
What is java jit compilers?
How do you input a string in java?
Which programming language is most secure?
What is the difference between stringbuffer and stringbuilder class?