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
How do I remove a character from a string in java?
Differentiate between stringbuffer and stringbuilder in java.
Why we override equals() method?
Should a main method be compulsorily declared in all java classes?
What is the purpose of interface?
Write a java program to print fibonacci series?
What is singleton math?
How to sort elements in a parallel array in java?
How to do a true java ping from windows?
What are synchronized methods and synchronized statements in java programming?
When should the method invokelater() be used?
What about abstract classes in java?
what type of questions asked for barclays technologies pune please send urgent
Difference between serialization and deserialization in java?
What is double word?