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

How are Java source code files named?

Answer Posted / niranjanravi

A java source code file contains atmost one public class
or interface defined with in the file.Java source code
files takes the name of the public class or interface that
is defined with in the source code file.If no public class
or interface is defined with in the source code file then
file must take on a name that is different than its public
class or interface.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When will you define a method as static?

1067


Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?

1065


I want to print “hello” even before main is executed. How will you acheive that?

1070


Why do we need singleton?

949


Can you create an object of an abstract class?

993


What is the static import?

1078


Difference between comparator and comparable in java?

1070


I don’t want my class to be inherited by any other class. What should I do?

999


How can a gui component handle its own events?

1081


What is a finally block? Is there a case when finally will not execute?

1049


Write a program to reverse array in place?

1050


Explain illegalmonitorstateexception and when it will be thrown?

1083


Which browsers work with java?

1063


What are the different ways of implementing thread? Which one is more advantageous?

968


How can you make sure that your singleton class will always return single instance in multi-threaded environment?

1000