Can A Byte Object Be Cast To A Double Value


  • 21 Mar, 2012

    Yes.

    Byte b = new Byte((byte)12);

    double d = b;

    after Java 5.

     

    Comments Received:
    Please give your suggestions and feedback:
  • 29 Dec, 2011

    No. An object cannot be cast to a primitive value.

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.