Understanding flow of object creation

Posted by Boris Mandovskes on Stack Overflow See other posts from Stack Overflow or by Boris Mandovskes
Published on 2012-09-15T09:32:22Z Indexed on 2012/09/15 9:37 UTC
Read the original article Hit count: 164

Filed under:

I'm new to java and I wonder if there is simple way to know flow like the following of object creation, I'm using eclipse and when I write new ObjectInputStream and press CTRL+SPACE. I don't see any option that I can enter new BufferedInputStream (I have copied the code from example) and than to create new object for FileInputStream etc.

in = new ObjectInputStream(new BufferedInputStream(new FileInputStream("emp.dat")));
List temp = (List)in.readObject();

I give that example since this is the first time that I saw this kind of creation new object flow and I want to use some best practice for the next times.

© Stack Overflow or respective owner

Related posts about java