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

Which number is denoted by leading 0x or 0x in java?

553


how do I create a runnable with inheritance? : Java thread

504


What is a boolean in java?

573


Is hashmap thread safe?

550


Explain when classnotfoundexception will be raised ?

563






How does the garbage collector works in java?

564


How many bits is a double?

524


What is t in parametric equations?

541


What is a vector in java?

570


How can we make a class virtual?

634


What is singleton class in java and how can we make a class singleton?

562


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

528


What are the features of junit?

594


Can an interface have a class?

557


What is thread pool in java with example?

536