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|
List some java keywords sun like c, c + + keywords?
What are benefits of java?
What is downcasting?
What do you mean by an interface in java?
What is method overloading with type promotion?
What are the three parts of a lambda expression? What is the type of lambda expression?
what is meant by encapsulation?
What is the difference between jdk and jre?
Describe method overriding
Does java map allow duplicates?
What is the difference between stringbuffer and stringbuilder?
Can we have any other return type than void for main method?
What is boolean in java?
What does exclamation mean in java?
Where are variables stored?