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 |
Can we force the garbage collection to run?
What is meant by method?
What is the difference between the direct buffer and non-direct buffer in java?
Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?
What is the inheritance?
What are the types of exceptions?
Explain the importance of finally block in java?
How do you avoid global variables?
What is type inference in java8?
What is outofmemoryerror in java?
What is OOPs & Why?
What are the uses of java?