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 is the difference between break and continue statements?

797


What are 3 boolean operators?

742


Is null == null in java?

856


How does enum work in java?

784


Can java arraylist hold different types?

728


What is overloading and overriding in java?

921


What is the null?

775


What does method mean?

742


What is a instance variable in java?

789


What is the base class of all exception classes?

816


What is the gregoriancalendar class in java programming?

787


Write a method to check if input string is palindrome?

774


Which package is used for pattern matching with regular expressions?

853


What is an abstract class and what is it’s purpose?

726


What are advantages of using Java?s layout managers than windowing systems?

2087