• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic