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

Is static a singleton?

0 Answers  


what is the difference between the methods sleep() and wait()? : Java thread

0 Answers  


What is polymorphism in java? What are the kinds of polymorphism?

0 Answers  


How many tetrahedral voids are there in bcc?

0 Answers  


Why char array is preferred over string for storing password?

0 Answers  


What is a memory leak in java?

0 Answers  


What is basic concept of static in java ?

1 Answers   iGate,


What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?

0 Answers  


Can a class have an interface?

0 Answers  


what is difference between business delegate and data access object(dao)? in java?

1 Answers  


What is http client in java?

0 Answers  


How does enum work in java?

0 Answers  


Categories