Can a Byte object be cast to a double value?
Answers were Sorted based on User's Feedback
Answer / roshan
yes, a byte object can be cast into double value. This is
done through auto-boxing concept of java that was
introduced in jdk 1.5.0. Using auto-boxing we can assign a
object into preemitive value and preemitive into object.
| Is This Answer Correct ? | 25 Yes | 1 No |
Answer / shweta
No, an object cannot be cast to a primitive value.
| Is This Answer Correct ? | 19 Yes | 9 No |
Answer / 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 |
What is the maximum size of byte array in java?
Define an abstract class with reference to java.
What is garbage collection? Can it be forced to run?
what is the diff b/w arraylist and vector?
6 Answers Code Genesis, Genesis, Sprintine Labs,
What is an event?
what is the difference between java and j2ee... is that can i work j2ee on net beans IDE 6.0
What is array sorting in java?
What is Overriding and how can it be used?
Why we need to serialize the object
11 Answers CTS, Geometric Software,
How will you override default serialization mechanism in java
Why do we need singleton class?
What are order of precedence and associativity, and how are they used?