How import statements are included
I am new to Java. I have a simple program wherein I am try to use some regex functions and it works fine. But, I am not able to understand how the import statement works.
My program has the following import statement:
And this regex is inside a jar file which is located in C:\Program Files\Java\jdk1.6.0_07\jre\lib\rt.jar. My CLASSPATH variable is not set and is empty.
My question is: When I run the java program, how is it able to find out that my regex is inside rt.jar which is in so and so path since we dont have anything pointing to the location?