Can a Byte object be cast to a double value?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the exception hierarchy in java?

753


Which class is the superclass for every class in java programming?

798


Compare Mutex and Semaphore in java.

781


What is the default value of float and double datatype in java?

791


Is it possible to write a regular expression to check if string is a number?

801


what are the disadvantages of indexes in oracle?

2103


Differentiate between class and structure.

840


Explain the JDB in depth & command line.

806


What is the byte range?

814


Why do we need hashset in java?

753


How do you declare an array in java?

772


What is a double?

842


What is methodological framework?

807


What do you understand by a Static Variable?

914


What does system out println () do?

797