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

Why use string handling in Java?

784


What is the length of a string?

728


What happens to a static var that is defined within a method of a class?

765


Is static variable stored in heap?

698


Why is it important to initialize a variable?

724


What is the difference between path and classpath variables?

714


What is a buffer in computer?

708


What are design patterns and please explain?

822


What is jagged array in java?

739


What is the difference between && and & in java?

801


How are java objects passed to a method and what are native methods?

812


Can final class have constructor?

686


Can we have multiple classes in a single file?

718


What do you understand by garbage collection in Java? Can it be forced to run?

751


Does set allows null in java?

701