This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
We generally give the filepath like: File file = new File(filepath);
But now if my filepath is stored in CLASSPATH environment variable, then how can I access this filepath in my program using CLASSPATH variable or by some another mechanism and not specifying the absolute or relative path to the file?