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


Please Help Members By Posting Answers For Below Questions

What is the symbol for line break?

612


What is the difference between equals() and?

589


What is the functionality of the stub?

571


Is vector thread safe in java?

559


When we serialize an object does the serialization mechanism saves its references too?

508






Is a string literal?

525


What is stringreader?

527


What is module in oop?

571


What do you understand by Header linked List?

598


Is it possible to specify multiple jndi names when deploying an ejb?

559


What does super keyword do?

562


What is the difference between quicksort & mergesort? When should they be used? What is their running time?

656


What is parsing a string?

592


What is import java util arraylist?

661


Is java a utf 8 string?

534