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 an iterator java?
What is java’s garbage collected heap?
What does percent mean in java?
How does singleton class work?
What do you understand by copy constructor in java?
what is ststic with example
What is static in java?
Is main a function?
What is the advantage of OOP in java?
Explain the importance of join() method in thread class?
Is null a value?
How many threads can I run java?
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.
Can we have any code between try and catch blocks?
Is string is a data type in java?