class A{
class B{
}
}
in which name u save the file,its the program compile?

Answer Posted / kalpana

output
-------

Inner classes cannot have static declarations

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is hash in java?

604


Is there any sort function in java?

702


explain local datetime api in java8?

657


Can java run on google chrome?

698


Where will it be used?

1590






Can we clone singleton class in java?

611


How do you convert an int to a double in java?

682


Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?

657


Which methods are used during serialization and deserialization process?

637


Differentiate between nested and inner class in java.

653


What is * argv?

809


Explain java heap space and garbage collection?

683


Can a final method be overloaded?

600


What is a line break example?

657


When does an object becomes eligible for garbage collection in java?

683