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 I overload to string method
What is unicode datatype?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
What does it mean to flush a file?
What is the final field modifier?
What are instance variables?
What is the difference between Array and Hash Table?
What is the properties class in java programming?
What are the advantages of passing this into a method instead of the current class object itself?
What is the default value of float and double datatype in java?
What is java abstraction with example?
Does java support function overloading, pointers, structures, unions or linked lists?
What are the steps involved to create a bean?
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
What is the java virtual machine?