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

Answer Posted / venkat

We can save it as A.java because there the main is included
in this class, And this also is not closed until the main
finction.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the syntax of multiple inheritance? When do we use such an inheritance?

863


Is it possible for a yielded thread to get chance for its execution again?

751


What's the default access specifier for variables and methods of a class?

822


Does constructor be static?

805


What is protected access modifier?

826


What are some alternatives to inheritance?

851


What is included in core java?

844


Does java set allow duplicates?

803


Why is singleton instance static?

763


Is java se free?

731


What does a za z0 9 mean?

784


What is the difference between break and continue statements?

826


What is the purpose of the main method?

777


Why synchronization is important?

816


What does sprintf mean?

748