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
What do you know about java?
What is treemap in java?
What is factor r?
Can an interface extend another interface?
What is linked hashset and its features?
Is a method a function?
How can we make copy of a java object?
What is the difference between hashmap and hashtable in java?
What is a null class?
Why do we need hashmap in java?
What is use of arraylist in java?
How do you define a method?
How many inner classes can a class have?
which pattern is default in scanner package?
How do you break a loop?