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

Where is stringbuffer stored?

0 Answers  


What is variable explain?

0 Answers  


what is daemon thread and which method is used to create the daemon thread? : Java thread

0 Answers  


What is java util collection?

0 Answers  


What is a java object and java application?

0 Answers  






What is the range of a character variable?

0 Answers  


Difference between static and dynamic class loading.

0 Answers  


What is a generic type?

0 Answers  


What does @override mean?

0 Answers  


Why can't we override private static methods?

0 Answers  


How listener identify that the event came from a particular object?

0 Answers  


Why do we create threads in java?

0 Answers  


Categories