Can a double value be cast to a byte?

Answers were Sorted based on User's Feedback



Can a double value be cast to a byte?..

Answer / ravikiran(aptech mumbai)

yes
double d=22.55;
byte b=(byte)d;

Is This Answer Correct ?    34 Yes 2 No

Can a double value be cast to a byte?..

Answer / niranjanravi

yes

Is This Answer Correct ?    24 Yes 2 No

Can a double value be cast to a byte?..

Answer / guest

yes

Is This Answer Correct ?    18 Yes 2 No

Post New Answer

More Core Java Interview Questions

What is a boolean output?

1 Answers  


Which is faster call by value or call by reference?

1 Answers  


Which list does not allow duplicates in java?

1 Answers  


Can you explain inner class.

1 Answers  


What are the steps in the jdbc connection?

1 Answers  


What does jenkins do?

1 Answers  


What is contract between hashcode and equal method?

1 Answers  


Is array synchronized in java?

1 Answers  


What are the four corner stones of oop?

1 Answers  


What is a parameter in matrices?

1 Answers  


Define how objects are stored in java?

1 Answers  


Why singleton pattern is better than creating singleton class with static instance?

1 Answers  


Categories