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


Please Help Members By Posting Answers For Below Questions

What is an iterator java?

527


What is java’s garbage collected heap?

530


What does percent mean in java?

586


How does singleton class work?

524


What do you understand by copy constructor in java?

488






what is ststic with example

1591


What is static in java?

555


Is main a function?

510


What is the advantage of OOP in java?

657


Explain the importance of join() method in thread class?

636


Is null a value?

554


How many threads can I run java?

536


there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.

1571


Can we have any code between try and catch blocks?

553


Is string is a data type in java?

587