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 array list in java?
What is Map interface?
what is meant by Byte code concept in Java?
Can you call a method on a null object?
What are the difference between composition and inheritance in java?
What are parameters in a method?
What are generic methods?
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
Why singleton pattern is better than creating singleton class with static instance?
What is the Concept of Encapsulation in OOPS
I dont want to use serialzable in java is there any another concept so plz tell me
Explain the use of sublass in a java program?