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 array list in java?

0 Answers  


What is Map interface?

3 Answers   Wipro,


what is meant by Byte code concept in Java?

0 Answers   Aspire,


Can you call a method on a null object?

0 Answers  


What are the difference between composition and inheritance in java?

0 Answers  






What are parameters in a method?

0 Answers  


What are generic methods?

0 Answers  


how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT

0 Answers   Google,


Why singleton pattern is better than creating singleton class with static instance?

0 Answers  


What is the Concept of Encapsulation in OOPS

0 Answers   HCL,


I dont want to use serialzable in java is there any another concept so plz tell me

3 Answers   WDC,


Explain the use of sublass in a java program?

0 Answers  


Categories