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

What causes memory leak in java?

487


Is array a class?

525


What is serialversionuid?

573


What technique can be employed to compare two strings?

586


What is illegal identifier in java?

547






What a static class can contains?

709


Give the difference between the println method and sqrt method?

634


Define an applet in java?

638


Describe different states of a thread.

586


What is the set interface in java programming?

637


What class of exceptions are generated by the java run-time system?

640


What is the purpose of format function?

634


What restrictions are placed on method overriding?

650


What is the symbol for line break?

618


Is null an object in java?

581