getClassLoader().getResource("sample.txt")
I know in java the above statement try to read file from build paths either bin or WEB-INF/classes or build. But If I keep '/' before sample.txt like below statement from where it will try to read the file?
getClassLoader().getResource("/sample.txt")