How “java” knows the class file to execute without setting the class path.ie.,Does it check in the current directory by default or we need to set the class path for current directory too.
How java knows the class file to execute without setting the class path.ie.,Does it
Share
It checks the current directory first. If the class is not found, it searches for that class in the class path.