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 OOP Language?

824


Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.

2555


Can we synchronize static methods in java?

771


What are the 4 versions of java?

824


What is array initialization in java?

681


Why java is call by value?

749


Difference between start() and run() method of thread class?

791


What is r in java?

772


What is static import in java?

704


How to perform selection sort in java?

768


How to declare an arraylist in java?

673


What are the 6 functions?

699


What is string subsequence method?

833


What is called module?

740


What is public static?

709