Answer: One can import the same package or the same class multiple times. Neither compiler nor JVM complains about it. However, the JVM will internally load the class only once no matter how many times you import the same class.
Not sure what course is right for you?
Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.