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
Explain the difference between association, aggregation and inheritance relationships.
Is sizeof a keyword in java programming?
What is a boolean flag in java?
What is Java Reflection API? Why it’s so important to have?
What is an empty string in css?
Can keyword be used as identifier?
How many bits is a string?
Explain the access modifiers for a class, method and variables?
What is the difference between jdk and jre?
What does jenkins do?
Is it possible to override private or static method in java?
Can we increase size of array?
what happens when a thread cannot acquire a lock on an object? : Java thread
What is a functional interface?
What are void methods?