Question
How is Java source code files named?

Answers

Java source code file takes the name of a public class or interface that is defined by the programmer while coding within the file. Source code file may contain maximum one public class or interface in the file. Two cases me occur while naming of the java source code file:

• When public class or interface is defined within a source code file then the java source code file must take the name of the public class or interface defined while coding.

• When no public class or interface is defined inside a source code file, then the java source code file take a name that is different than its classes and interfaces. Source code files use the .java extension.   Your Comment




More Software,Java Questions..
What is the inputsplit in map reduce software?

Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

What is software configuration management?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

What is object cloning in Java?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?



Search
Can you Answer!!
  • Q Is visual foxpro supported on windows vista?
  • Q Which private sector lender has collaborated with fintech startup India lends to enable first time borrowers who do not have a credit history to take loans?
  • Q What is potable water?
  • Q Who was the first Indian to be a Fellow of the Royal Society of London?
  • Q What is data validation strategies for data mart validation after loading process
  • Q Do you think news sources make news? Discuss with examples the importance of news sources in making news.
  • Q After selecting Allowance standards on the AFML website what do you select next to perform various forms of inquires?
  • Q What are the different styles and leadership skills required?
  • Q What does it mean have a 'long' or 'short' position?
  • Q an acronym for the organisation that publishes programming langauge standards is
  • Q The M. A. Chidambaram International stadium in Chennai famous for which sport?