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

Can a constructor call the constructor of parent class?

0 Answers  


What is a line break example?

0 Answers  


Convert a BST into a DLL and DLL to BST in place.

0 Answers   Amazon,


What does \ mean in regex?

0 Answers  


Name and explain the types of ways which are used to pass arguments in any function in java.

0 Answers  






What is the difference between the direct buffer and non-direct buffer in java?

0 Answers  


What is executor memory?

0 Answers  


They had given one progam final HashMap hm=new HashMap(); public void show() { hm.put("name",value); } in this prg here the final hashtable value can be changed in put method,its the prg run?

3 Answers   DNS, Wipro,


What is starvation?

0 Answers  


How do I stop concurrentmodificationexception?

0 Answers  


What is a resource leak ?

1 Answers  


If set accepts only one argument then how can it compare two objects to avoid duplicates

5 Answers  


Categories