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
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
What is the purpose of final keyword and when to use it?
How do you write a conditional statement?
What is the base class of all exception classes in java?
Which sort is best in java?
What are design patterns and please explain?
Explain importance of inheritance in java?
What is style and indentation?
Where is the singleton class used?
Explain the difference between collection api and stream api in java8?
Is java written in c?
How do you join strings in java?
Can we use both this () and super () in a constructor?
How do generics work?
What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?