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 Abstract DataType?

1 Answers  


How many java versions are there?

0 Answers  


class A { private int i; } class B extends A { private int i; } if I create an object of B class what will be the memory of that object.

2 Answers   Yamaha,


How to create a fecelet view?

0 Answers  


Difference between a process and a program?

0 Answers   Infosys,






Explain about java sdk?

0 Answers  


Explain the polymorphism principle?

0 Answers  


How many times garbage collector will invoke an object?s finalize() method?

4 Answers  


What are functions in java?

0 Answers  


Can the interface be final?

0 Answers  


can java object be locked down for exclusive use by a given thread? : Java thread

0 Answers  


What is the difference between and ?

0 Answers  


Categories