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 |
How do you clear a list in java?
What is %d in printf?
7) Suppose there is Student class like class student { int age; string name; } We want to store these objects in a HashMap. Do we need to override any methods in Student class? If any which ones and why? what if i just override equals or just hashcode? what will be the results in both the cases?
how to deploy tomcatserver to weblogic server? write d following steps?
What do u mean by wrapper Class? What do u mean by Jvm... How do u change JVM for other OS? Or No need to Change ...? its like tricky
Can we assign integer value to char in java?
What is Java Reflection API? Why it’s so important to have?
What is the relationship between clipping and repainting under awt?
What is the benefit of lambda expressions?
How can you read content from file in java?
Do you need to import math in java?
To the class members how can we provide security?