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 |
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.
if arraylist size is increased from initial size what is the size of arraylist...suppose initial is 100 , if i add 101 element what is the size...
What are the different ways to handle exceptions?
What is the old name of java?
What are the benefits of java?
What is pangram in java?
What is the difference between the boolean & operator and the && operator in java programming?
Write code of any action class?
What are the legal operands of the instanceof operator?
Differentiate between run time error and syntax error.
what is the meaning of java.lang and java.util
When is the garbage collection used in Java?