class A
{
class B
{
psvm(String args[])
{
}
}
}
if the prg saved in A.java whats the o/p?
Answer Posted / chanchal
Compilation error:-
Becouse Inner classes cannot have static declarations
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the benefit of inner / nested classes ?
What is difference between path and classpath?
Can finally block be used without a catch?
What do you mean by an object in java?
Can a top level class be private or protected?
Why do we need strings in java?
What is purpose of keyword void?
What is vector?
Difference between object and reference?
Is this valid in java ? Can we instantiate interface in java?
What is java and its types?
What will happen when using pass by reference in java?
What are the rules for naming an array?
What is an argument in java?
Why vector is used in java?