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 |
i need example for java abstraction. where we use abstraction and why we need abstraction.
What is sortedset in java?
Can we add default constructor to Servlet?
what is the difference between process and thread? : Java thread
tell me some common
What is final keyword?
How many types of memory areas are allocated by JVM in java?
What do you mean by composition in java?
When can an object reference be cast to an interface reference in java programming?
Why is static used?
How do you use spaces in java?
which one is performance wise advantageious from List,Set,Map?