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 |
Can you call a method in a method?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
How do I know if java is installed?
Can you sort a list in java?
When a byte datatype is used?
we know that every java prog must follows OOPS Principles. Anybody can answer, HOW THE FOLLOWING PROGRAM FOLLOWS OOPS CONCEPTS i.e, Inheritance,Polymarphism,Encapsulation? class a{ public static void main(String args[]){ System.out.println("Hello World"); } }
Can you have a constructor in abstract class?
What is the static keyword?
Can we store variables in local blocks?
does java support pointers?
What are the advantages of functions?
Give an example of use of pointers in java class.