class A{
class B{
}
}
in which name u save the file,its the program compile?
Answer Posted / venkat
We can sava it as any class name in it. But it will not
compiled
inorder to the without of mainclass.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Does java trim remove newline?
how does the run() method in runnable work? : Java thread
What is a constructor, constructor overloading in java?
What all access modifiers are allowed for top class ?
What is the primary benefit of encapsulation?
Name some OOPS Concepts in Java?
What are runtime exceptions?
Can you write a java class that could be used both as an applet as well as an application?
When the constructor of a class is invoked?
Why is java multithreaded?
What are controls and their different types in awt?
Why do we need strings in java?
Which is easier netbeans or eclipse?
How to print an arraylist in java?
What is method reference in java?