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
What means public static?
What is int argc char * argv?
Is string is a keyword in java?
Which browsers work with java?
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
Why is a string immutable?
When do you get classcastexception?
how we can make a read-only class in java?
What is preparedstatement in java?
Is the empty set a singleton?
What is general methodology?
What does a method signature consist of?
How is it possible for two string objects with identical values not to be equal under the == operator?
Why collection is called framework in java?
What are variable arguments or varargs?