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 nested class?

0 Answers  


what state does a thread enter when it terminates its processing? : Java thread

0 Answers  


How many arguments can a method have java?

0 Answers  


What is a variable simple definition?

0 Answers  


Why are global variables used?

0 Answers  






What is stop(), suspend(), resume() method?

3 Answers  


What is the difference between Synchronizing mehtod & Synchronizing block?

2 Answers  


Which of the classes will have more memory allocated?

0 Answers  


What is string subsequence method?

0 Answers  


Can we modify the throws clause of the superclass method while overriding it in the subclass?

0 Answers  


What will be the default values of all the elements of an array defined as an instance variable?

0 Answers  


Is map sorted in java?

0 Answers  


Categories