Answer Posted / niranjanravi
A java source code file contains atmost one public class
or interface defined with in the file.Java source code
files takes the name of the public class or interface that
is defined with in the source code file.If no public class
or interface is defined with in the source code file then
file must take on a name that is different than its public
class or interface.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How are the elements of a gridbaglayout organized in java programming?
How to split a string in java?
What will be the default values of all the elements of an array defined as an instance variable?
How are java objects passed to a method and what are native methods?
explain autoboxing in java?
What is a Hash Table? What are the advantages of using a hash table?
Which is better arraylist or vector?
Can list have duplicates in java?
What is public static?
How do you break a loop?
Explain the access modifiers for a class, method and variables?
How can we use primitive data types as objects?
What does the @override annotation do?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
How many types of flags are there?