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

Why only one Class is public in one file? Explain in
details. Thanks in Advance.

Answer Posted / ganesh slv

Sorry for the above..
its

If you declared a class as public, your file name should be
the same of your class name.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which containers use a flowlayout as their default layout in java programming?

1017


How concurrent hashmap works?

1188


State differences between C and Java?

1219


What is the difference between length and length() method in java?

1126


What about instanceof operator in java?

1028


What are the two environment variables that must be set in order to run any java programs?

972


How many ways can we create the string object?

1023


What is a function in programming?

1051


Is 0 a real number?

1053


What is the difference between heap memory and stack memory?

1080


How many bytes is 255 characters?

988


What is the replace tool?

1179


Can a variable be local and static at the same time?

1012


explain multi-threading in java?

1035


Which method returns the length of a string?

1045