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 I remove a character from a string in java?

487


Differentiate between stringbuffer and stringbuilder in java.

546


Why we override equals() method?

555


Should a main method be compulsorily declared in all java classes?

520


What is the purpose of interface?

569






Write a java program to print fibonacci series?

532


What is singleton math?

566


How to sort elements in a parallel array in java?

496


How to do a true java ping from windows?

610


What are synchronized methods and synchronized statements in java programming?

564


When should the method invokelater() be used?

571


What about abstract classes in java?

603


what type of questions asked for barclays technologies pune please send urgent

5218


Difference between serialization and deserialization in java?

644


What is double word?

525