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 / rakesh soni

Hi Mahendra,
This is OK that, compiler allowed only one class as public
per file. But my question is, why compiler allowed only one
class as a public in one file, why not more then one???

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a constructor be protected?

1042


What are three ways in which a thread can enter the waiting state in java programming?

1122


What is the advantage of functional interface in java 8?

960


Can string be considered as a keyword?

1002


Can static method access instance variables ?

1082


What is bytecode in java ?

1140


Is void a return type?

920


How to make object serializable in java?

939


What is an arraylist in java?

1011


Differences between external iteration and internal iteration?

1101


What is bubble sort in java?

1009


What is meant by class loader? How many types are there?

1203


What will be the default values of all the elements of an array defined as an instance variable?

1000


What is immutability in java?

1042


Is null an object java?

942