Which would be the most effecient alternative?
This is my first post on the forums, so first I'd like to say
I'm wondering what would be the preferred method to do this, and why one is better than the other (if any difference indeed exists).
Option 1 (My professor always use this.. ))
FileReader fr = new FileReader("example.txt");
BufferedReader br = new BufferedReader(fr);
Option 2 (This seems more intuitive to me))
BufferedReader br = new BufferedReader(new FileReader("example.txt"));
*THIS QUESTION IS NOT SPECIFIC TO BUFFEREDREADER OR ANY READERS*
I ask of this because I want to develop a good habit in programming.
Thanks in advance!