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

Answer Posted / ujjal

main method must be outside of the class B.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can subclass overriding method declare an exception if parent class method doesn't throw an exception?

499


What is the purpose of final keyword and when to use it?

519


How do you write a conditional statement?

515


What is the base class of all exception classes in java?

564


Which sort is best in java?

521






What are design patterns and please explain?

566


Explain importance of inheritance in java?

599


What is style and indentation?

541


Where is the singleton class used?

578


Explain the difference between collection api and stream api in java8?

501


Is java written in c?

533


How do you join strings in java?

515


Can we use both this () and super () in a constructor?

541


How do generics work?

514


What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?

600