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

What is difference between fileinputstream and filereader in java?

562


Does list allow duplicates in java?

522


Can we override compareto method?

507


What is jvm? Why is java called the platform independent programming language?

547


How to sort array in descending order in java?

516






Write a java program to count the number of words present in a string?

537


Why is singleton not thread safe?

654


How large is a boolean?

555


What is private static in java?

581


What is Java Shutdown Hook?

611


Tell me the Importent classes in net package?

1582


Why is string builder not thread safe?

591


What is the use of optional ?

568


what is the volatile modifier for? : Java thread

523


How do I get 64 bit java?

531