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 |
What is internal variable?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread
How can you say java is object oriented?
class A { private int i; } class B extends A { private int i; } if I create an object of B class what will be the memory of that object.
How is rounding performed under integer division?
What is a boolean used for?
What is method overloading with type promotion?
What is meant by local variable and instance variable?
What is arrays fill in java?
List some features of the abstract class.
Can we override the static method?
How is Garbage collection done in Java?