Also not if you want to open a file. For that you'd have to create an instance of FileInputStream. I'm not sure what your point is.