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...

Explain class A{}
class B{}
class C{}
all the three classes are saved in a single file name, what
the name should i provide to the file ,in what file name
should i run the program? Ple Explain

Answer Posted / cool_duzz

The name of the file should be the same as the class having
public access modifier.. otherwise u can put it the way u
like. 3 .class files will be generated by compiler.

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a finally block?

935


Are constructors methods?

961


What is meant by class loader? How many types are there? When will we use them?

924


What are the advantages of arraylist over arrays?

1047


What happens if an exception is throws from an object's constructor?

1087


What is ternary operator in java?

1023


What is <> used for in java?

1081


Why do we need data structure in java?

1029


What is locale in java?

980


According to java operator precedence, which operator is considered to be with highest precedence?

1047


What is collection sort in java?

908


What is super?

1065


Does a class inherit the constructors of its superclass in java programming?

1030


What is better- service oriented or batch oriented solutions?

2156


What is the difference between processes and threads?

997