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 static nested classes in java?

816


What is the use of runnable interface?

836


How transient variable is different from volatile variable?

767


If system.exit (0); is written at the end of the try block, will the finally block still execute?

826


How to solve the problem of generating the unique hash keys with hash function?

1671


Define how does a try statement determine which catch clause should be used to handle an exception?

807


Can we override static methods in java?

811


What is prefix of a string?

794


What do you understand by final value?

795


What is the size of string?

764


Can we make a constructor final?

769


Can an interface be final?

755


Who developed java?

759


Explain the private field modifier?

843


What is java argument list?

701