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

Answer Posted / vipul

We can save the program by any name either A or B,

Program will compile but will not run......

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is the singleton pattern considered to be an anti pattern?

563


What is the driver class?

658


What is comparable and comparator interface? List their differences

683


How do you decide when to use arraylist and linkedlist?

623


How do you generate random numbers in java?

620






What are variable names?

618


What is the use of volatile in java?

684


What is difference overloading and overriding?

685


What is compareto () in java?

623


Is arraylist a class in java?

619


What is double parsedouble in java?

633


What is lexicographically smallest string?

688


What is the difference between Java and C++?

696


Is heap stored in ram?

629


Why Java doesn’t support multiple inheritance?

723