• Post Reply Bookmark Topic Watch Topic
  • New Topic

class can not be instantiated?!

 
sabyasachi mondal
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which class CANNOT be directly instantiated?
Choice 1
java.io.BufferedReader
Choice 2
java.io.StringBufferInputStream
Choice 3
java.io.DataInputStream
Choice 4
java.io.InputStream
Choice 5
java.io.FileReader
Can anyone find the answer? Thank you.
Regards,
Mondal
 
Vladimir Kositsky
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
InputStream is abstract class, could not be instantinated.
 
sabyasachi mondal
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Vladimir Kositsky:
InputStream is abstract class, could not be instantinated.

Thank you Vladimir, it helps me a lot.
Reagrds,
Mondal
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!