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

What is an arraylist in java?

983


How do you override a private method in java?

925


Differentiate between the constructors and methods in java?

891


If you do not want your class to be inherited by any other class. What would you do?

943


What is a boolean in java?

997


How can I debug the Java security exceptions and AccessControlExceptions?

1090


What is the difference between method and means?

1012


What is a condition in java?

933


What are java packages?

973


Can we override private method in java?

1043


Can main() method in java can return any data?

1110


If an object reference is set to null, will the garbage collector immediately free the memory held by that object?

1081


What is the difference between an if statement and a switch statement?

1098


What is run time allocation?

974


What is continuity of a function?

1018