Can a Byte object be cast to a double value?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about data types?

664


What is thread count in java?

629


What is difference between variable declaration and definition?

602


Which types of exceptions are caught at compile time?

663


Is string a class?

631






What are predefined functions?

686


Can we inherit inner class?

621


Is java based on c?

646


Can we override compareto method?

602


Can a class have a static inner class?

697


What are the elements of java?

651


What is parameter example?

649


what is object slice?

1673


Can classes declared using the abstract keyword cab be instantiated?

663


What are the three parts of a lambda expression? What is the type of lambda expression?

676