Can a Byte object be cast to a double value?

Answer Posted / rajesh dangi

Byte object can not be casted into primitive type. What we
can do is to create a double variable and get the value of
Byte object converted to it. There are many vays to do that

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is palindrome in java?

756


Explain about collection interface in java?

777


Why do we need strings in java?

721


Is int primitive data type?

751


What is the benefit of using enum to declare a constant?

876


Is jdk required on each machine to run a java program?

1029


What is object in java?

773


Which java version is latest?

755


Is finalize() similar to a destructor?

798


What is difference between null and void?

742


Differentiate between array list and vector in java.

887


What does string intern() method do?

841


Are arrays immutable in java?

761


Why is core java important?

804


In java how do we copy objects?

791