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 replaceall in java?
Why do you canvas?
What is the function of static in java?
What are the ways in which a thread can enter the waiting state?
what do you mean by stream pipelining in java 8? Explain
Give some features of interface?
Is it necessary for the port addresses to be unique? Explain with reason.
What is java english?
Which is faster set or list in java?
Explain the difference between map and flatmap stream operation?
Explain different ways of creating a thread. Which one would you prefer and why?
Give any two differences between C++ and java.
Difference between character constant and string constant in java ?
What is a constructor, constructor overloading in java?
how to split string in java?