Can a double value be cast to a byte?
Answers were Sorted based on User's Feedback
Answer / ravikiran(aptech mumbai)
yes
double d=22.55;
byte b=(byte)d;
Is This Answer Correct ? | 34 Yes | 2 No |
What we have to do, when we don't want to implement all methods of an interface?
What is set in java?
Explain the selection sort algorithm and state its time complexity?
i need to know the website that i can compile and run a java code in online.(while system doesn't contain any jdk and jre)
Is there a sort function in java?
What is the parse method in java?
Why is it called boolean?
Difference between Applet & Application?
what is the main class of all the classes
What is a line break?
explain the concept of inheritance with an example?
Explain 5 io best practices?