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
Can sleep() method causes another thread to sleep?
Write a factorial program using recursion in java?
Differece between class and generic class?
What is integers and example?
What is Classloader in Java?
What is a dynamic array in java?
Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?
What is static block?
What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
Give me some null interfaces in java?
Does treeset use compareto?
What is singleton class and how can we make a class singleton?
What is boolean false?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
Why super is first line in java?