Can a Byte object be cast to a double value?

Answers were Sorted based on User's Feedback



Can a Byte object be cast to a double value?..

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

Can a Byte object be cast to a double value?..

Answer / shweta

No, an object cannot be cast to a primitive value.

Is This Answer Correct ?    19 Yes 9 No

Can a Byte object be cast to a double value?..

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

Post New Answer

More Core Java Interview Questions

What is boolean in java?

0 Answers  


Differentiate between stringbuffer and stringbuilder in java.

0 Answers  


What is wrapper class example?

0 Answers  


what is platform

2 Answers   i3 Solutions,


Hi Friends, I am beginner in java. what i know about synchonized keyword is,If more that one 1 thread tries to access a particular resource we can lock the method using synchronized keyword. Then after that how the lock is released and how next thread access that.Please explain with example.

5 Answers  






Can we call thread start () twice?

0 Answers  


why java does not contain pointers?

13 Answers   Infosys, TCS,


What is difference between length and length() method in java ?

0 Answers  


What is the difference between java and .Net?

39 Answers   Bosch,


Distinguish method overloading and method overriding

4 Answers   Tech Mahindra,


What is java literals?

0 Answers  


What is the meaning of flag day?

0 Answers  


Categories