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 are the steps in the jdbc connection?

558


What does || mean in vectors?

461


What are measurable parameters?

556


What is nested class?

552


What is the arraylist in java?

513






Can we create our own wrapper class in java?

531


What is Java Reflection API? Why it’s so important to have?

591


How do you get length in java?

544


What is integer valueof?

629


What is Java Shutdown Hook?

596


What is the difference between sop and work instruction?

472


What is the collection interface?

573


What is the difference between static and non-static variables in java programming?

503


What are parsers? Dom vs sax parser.

538


How do you trim a space in java?

487