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 / vijayakumar chinnasamy

If a java source code file contain public class then the
source code file name should be public class name other
wise compiler error.


if a java source code does not contain the public class
then the name may be class name or anything ,not a problem.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you sort arraylist in descending order?

1021


What is the difference between path and classpath variables?

1056


Which class is the superclass for all the classes?

1021


Is static variable stored in heap?

1003


What are the important features of Java 10 release?

985


Which container method is used to cause a container to be laid out and redisplayed in java programming?

1109


What is tree in java?

920


What is a boolean used for?

1115


What is difference between filereader and bufferedreader?

960


What happens if an exception is not handled in a program?

1103


What is jit compiler in java?

1108


Can we modify the throws clause of the superclass method while overriding it in the subclass?

1037


What are the differences between graph and tree?

1122


how can you catch multiple exceptions in java?

1015


Can you declare an interface method static?

1063