Why to give the file name same as the public class name in
java?
Answer Posted / akanksha bansal
So that ,that class is accessible from some other class/file
as well
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
what is object-oriented programming in java?
What is the platform?
What is assembly language?
What are advantages and disadvantages of OOPs?
How many characters is 16 bytes?
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
Write a code to show a static variable?
What is floor in java?
Can inner class extend any class?
Describe what a thread-local variable is in java?
How do you implement singleton class?
What is the need of transient variables in Java ?
How do you include a string in java?
Is list ordered in java?
what is thread? What are the high-level thread states? : Java thread