• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Marcus Green exam 3 question

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
According to Marcus Green exam 3 - the following statement is wrong:
An instance of FileInputStream may not be chained to an instance of FileOutputStream
Explanation:
Generally InputStreams can only be chained to other OutputStreams and OutputStreams can only be chained to other OutputStreams. The piped streams are an exception to this.
My doubt:
I know piped streams can be chained.How can InputStream be chained to another OutputStream ?
Is he talking about SequenceStream, where more than one stream can be combined to form a single Stream.
Please clarify.
cheers
Sankar
 
arch rival
Posts: 2813
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Generally InputStreams can only be chained to other OutputStreams "
Looks like my concentration wandered a bit here? I think it should read "Generally InputStreams can only be chained to other InputStreams"
Marcus
 
reply
    Bookmark Topic Watch Topic
  • New Topic