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

Explain the difference between association, aggregation and inheritance relationships.

1089


Is sizeof a keyword in java programming?

1067


What is a boolean flag in java?

1029


What is Java Reflection API? Why it’s so important to have?

1160


What is an empty string in css?

1051


Can keyword be used as identifier?

957


How many bits is a string?

999


Explain the access modifiers for a class, method and variables?

1142


What is the difference between jdk and jre?

1062


What does jenkins do?

908


Is it possible to override private or static method in java?

994


Can we increase size of array?

1027


what happens when a thread cannot acquire a lock on an object? : Java thread

1049


What is a functional interface?

1023


What are void methods?

1021