⟩ What is the difference between URL instance and URLConnection instance?
A URL instance represents the location of a resource, and a URLConnection instance represents a link for accessing or communicating with the resource at the location.
A URL instance represents the location of a resource, and a URLConnection instance represents a link for accessing or communicating with the resource at the location.
Tell me what are static initializers and when would you use them?
Explain me how can you catch an exception thrown by another thread in Java?
Explain me why aren’t you allowed to extend more than one class in Java but are allowed to implement multiple interfaces?
As you know ArrayList, LinkedList, and Vector are all implementations of the List interface. Which of them is most efficient for adding and removing elements from the list? Explain your answer, including any other alternatives you may be aware of?
Please explain what is the ThreadLocal class? How and why would you use it?
Tell me what is multiple inheritance? Is it supported by Java?
Tell me what is reflection? Give an example of functionality that can only be implemented using reflection?
Tell us what is the difference between equals() and == ?
Tell me why is the code printing true in the second and false in the first case?
Explain me how does the JVM handle storing local variables vs storing objects?