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

What are the different ways of creating thread?

666


What is flag in python?

657


What is console based application in java?

660


How do generics work in java?

610


How can you read content from file in java?

672






Why do we need strings in java?

603


What is the size of int in 64-bit jvm?

633


can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread

634


Can we use synchronized block for primitives?

699


What are thread local variables?

656


How will you invoke any external process in java?

693


What is a nested structure?

619


What is method reference in java?

678


What is api data?

639


Are private methods final?

570