Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Does java trim remove newline?

931


how does the run() method in runnable work? : Java thread

872


What is a constructor, constructor overloading in java?

971


What all access modifiers are allowed for top class ?

1147


What is the primary benefit of encapsulation?

1019


Name some OOPS Concepts in Java?

1027


What are runtime exceptions?

1118


Can you write a java class that could be used both as an applet as well as an application?

916


When the constructor of a class is invoked?

983


Why is java multithreaded?

937


What are controls and their different types in awt?

1029


Why do we need strings in java?

946


Which is easier netbeans or eclipse?

1018


How to print an arraylist in java?

1009


What is method reference in java?

1064