Can a Byte object be cast to a double value?
Answers were Sorted based on User's Feedback
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 |
Answer / shweta
No, an object cannot be cast to a primitive value.
| Is This Answer Correct ? | 19 Yes | 9 No |
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 |
How to eliminate duplicates from an array?
6 Answers ABC, AdMod, Adobe, College School Exams Tests, Patni, Wipro,
What enableEvents() method do?
What is a jit compiler?
What are MalformedURLException and UnknownHost Exceptions and whey they will be thrown?
What are the parameters used in Connection pooling?
why java is not supporting multiple inheritence?
How can we get one Interface methods whit out using implementation of interface
How to reduce flicking in animation?
what is translator and it types
Does hashset allow duplicates in java?
int a=10,b=20,c=30 a= b+c;b=a+c;c=a+b; System.out.println("The value is"+a+b+c;
What is protected and friendly?