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
Can we override compareto method?
What are different exception types exceptions available in java ?
What is nextint java?
How many unicode characters are there?
What's the difference between int and integer in java?
What is a treeset in java?
What is difference between arraylist and list in java?
what is the difference between Object Based Language and Object Oriented Language?
What is a boolean structure?
What is java virtual machine and how it is considered in context of java’s platform independent feature?
What does system.gc() and runtime.gc() methods do?
How to reverse string in java?
What is identifier in java?
What is meant by 'bit masking' in java?
How do you create immutable object in java?