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 is the basic of java?
What are void pointers?
What is sizeof () operator?
How do you create a first line indent?
What are selection structures?
How do you do math powers in java?
Explain about map interface in java?
What are the difference between string, string builder, and string buffer in java?
How does sublist works in java?
Java is pass by value or pass by reference? Explain
When is the arraystoreexception thrown?
What are the main uses of this keyword?
Why singleton pattern is better than creating singleton class with static instance?
What are the library functions in java?
What is the difference between multitasking and multithreading in Java