Can a Byte object be cast to a double value?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When to use runnable interface vs thread class in java?

526


Explain inner classes ?

655


What is an example of a conditional statement?

568


What is a stringbuffer?

515


Is space a char?

534






Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?

657


does java support pointers?

567


How do you achieve polymorphism in java?

523


What is stack example?

549


What is string in java with example?

493


Can finally block be used without a catch?

548


What is the difference between replace and replace all?

477


What is a boolean flag in java?

571


What is bytecode in java ?

610


What is the inheritance?

553