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

Can an interface have a class?

555


What are the 4 types of research methods?

502


What’s a deadlock?

601


How many threads can I run java?

530


Which are different kinds of source code?

648






What is ordered map in java?

529


What is the difference between a method and a procedure?

536


What is unicode datatype?

521


Explain java coding standards for methods?

595


What's a method in programming?

538


What is the difference between the paint() and repaint() methods in java programming?

610


What is the need of transient variables in Java ?

570


Explain about java sdk?

573


What are sets in java?

498


Lowest Common ancestor in a Binary Search Tree and Binary Tree.

548