title: rto create an instance of class ByteBuffer but getting error saying "cannot instantiate type ByteBuffer
body: <p>when i have the following line of code to creat a instance of ByteBuffer
  I get a error saying "cannot instantiate type ByteBuffer"
  ByteBuffer get=new ByteBuffer();</p>
  
  <p>program
  static int g=0;</p>
  
  <pre><code>public static void main(String[] args) {
  
  
      URL website = new URL("http://api.bitcoincharts.com/v1/csv/1coinUSD.csv.gz");
      ReadableByteChannel rbc = Channels.newChannel(website.openStream());
      FileOutputStream fos = new FileOutputStream("information.html");
      fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
  
      ERROR ON LINE BELOW
      ByteBuffer get=new ByteBuffer();
  
      rbc.read(get);
      ted=get.array();
  
      readInFile(first);
      readInFile(second);
  </code></pre>