How to convert a string to long?

Answers were Sorted based on User's Feedback



How to convert a string to long?..

Answer / satya


long l=Long.parseLong(Strin s)

Is This Answer Correct ?    5 Yes 0 No

How to convert a string to long?..

Answer / ravikiran(aptech mumbai)

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

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is a flag and how does it work?

0 Answers  


What is mutable object and immutable object?

0 Answers  


Is singleton class immutable?

0 Answers  


Lowest Common ancestor in a Binary Search Tree and Binary Tree.

0 Answers   Amazon,


Is java se open source?

0 Answers  






How many tetrahedral voids are there in bcc?

0 Answers  


What steps are taken when the OS shifts from one-thread execution to another?

0 Answers   Amazon,


what is an virtual function

2 Answers   TCS,


how to call a method in different package?

4 Answers  


What is variable and constant explain with example?

0 Answers  


Why generics are used in java?

0 Answers  


what is the difference between future and callable interface in java?

0 Answers  


Categories