class A
{
class B
{
psvm(String args[])
{
}
}
}
if the prg saved in A.java whats the o/p?

Answer Posted / kalpana

output
-------

Inner classes cannot have static declarations

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various access specifiers in java?

557


What is the difference between declaration and definition in java?

510


Explain about java sdk?

574


What is the applet security manager, and what does it provide?

529


What is thread life cycle in java?

573






Which method must be implemented by all threads?

714


What is the final method?

594


what is a thread pool in java and why is it used?

522


How do you input a string in java?

493


What do you mean by pointer value and address?

569


What is the difference between serial and throughput garbage collector?

572


Is a class subclass of itself?

590


If an application has multiple classes in it, is it okay to have a main method in more than one class?

530


What is an array length?

490


Does constructor be static?

558