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


Please Help Members By Posting Answers For Below Questions

if u open login & logout ,how can udisplay the timelogin & logout members ?

1848


What does string intern() method do?

691


What is the best definition for data?

608


How you can force the garbage collection?

633


How do you sing an Applet ?

2131






What is variable and rules of variable?

623


Why do people says “java is robust”?

648


What is the difference between superclass and subclass?

623


How many bits is a string?

624


Differece between class and generic class?

664


What is data type modifier?

619


What is Major and importance difference between for and foreach loop ?

672


What are sets in java?

600


How do you do a line break in java?

574


What is the difference between interface & abstract class?

663