The returned file will either contain the folder from where your program is running or the executable jar file, if your program is an executable jar.
Main.class because this code is in my main method (which is in the class 'Main'). You can replace
getClass() if you want to use this code in a non-static method.
You need to login to post a comment.