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?

Answers were Sorted based on User's Feedback



How are Java source code files named?..

Answer / 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

How are Java source code files named?..

Answer / ravikiran(aptech mumbai)

java source code names will be named withthe name of the
class that is declare as publicwith .java extension

Is This Answer Correct ?    1 Yes 0 No

How are Java source code files named?..

Answer / 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

More Core Java Interview Questions

What is backdrop?

0 Answers   Atos Origin,


How thread scheduler schedule the task?

0 Answers  


What's the base class of all exception classes?

0 Answers  


What is the difference between state-based unit testing and interaction-based unit testing?

0 Answers  


Explain the reason behind ending a program with a system.exit(0)?

0 Answers  


What do you understand by a Static Variable?

0 Answers   CGI,


what is purpose of collections.unmodified() method..?

1 Answers   Accenture,


What is the purpose of using javap?

0 Answers  


Implement two stacks using a single array.

0 Answers   Global Logic,


what are the boundaries of jdk and jre?

0 Answers   CoreObjects,


What are the new features in java 8? Explain

0 Answers  


Why char array is preferred over string for storing password?

0 Answers  


Categories