long d =10;int i =0;i=d; /// is this possible? If d is very
long number (10 digits or some thing) then?
Answer Posted / vijayakumar chinnasamy
It display compile time error. Cant convert form long to
int. becacuse it -2 32 bit and long is 64bit, so u need to
type case the long value into int value.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What are the library functions in java?
What’s the difference between constructors and other methods?
Does .length start 0 java?
why java uses class level type casting ?
How do I find and replace in word?
Why is the singleton pattern considered to be an anti pattern?
Write an algorithm for quick sort?
What are the five major types of reference sources?
Give a practical example of singleton class usage?
How do you create a bulleted list?
Can a private method of a superclass be declared within a subclass?
Can we have multiple classes in single file ?
Differentiate between overriding and overloading cases?
What are the various access specifiers in java?
What do you mean by append?