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
Can we create our own daemon thread?
What is the difference between arraylist and hashset in java?
What is overloading and overriding in java?
What is advantage of java?
Can you call a method on a null object?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
Can you instantiate the math class in Java?
why doesn't java run on all platforms?
What are different exception types exceptions available in java ?
What is an array in java?
What is return keyword in java?
What is a short in java?
What is nextint java?
What does provide mean construction?
How do generics work?