How to convert a string to long?

Answer Posted / ravikiran(aptech mumbai)

Long l=Long.parseLong(String s);
long l1=l.longValue();

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is parsing a string?

598


What is better - 'bit-shift a value' or 'multiply by 2'?

709


What is a linkedhashmap java?

565


How to sort array of 0 and 1 in java?

549


What is the difference between arraylist and hashset in java?

525






What is module in oop?

576


Can we define constructor in inner class?

547


What is the access scope of protected access specifier?

544


Which class contains a method: cloneable or object?

542


What is the difference between int and integer in java?

527


What are basic keywords?

563


What the difference is between execute, execute Query, execute Update?

384


Can we create more than one object singleton class?

594


How do you escape json?

544


What is difference between static and abstract class?

525