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 is thread safe in java?
How can you add and remove nodes in jtree?
Are arrays dynamic in java?
What are the legal operands of the instanceof operator?
What are access specifiers in java ?
What are the different types of inheritance in java?
Can we create object of inner class in java?
What is array size in java?
How java uses the string and stringbuffer classes?
define the terminology association.
What is difference between static class and singleton pattern?
What is the old name of java?
What is string data?
How many types of classes are there in java?
Which data type is class in java?