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 are the topics in advance java?

510


What is difference between calling start() and run() method of thread?

555


how to open and edit XML file in Weblogic???

1545


What modifiers may be used with a top-level class?

571


How can you write a loop indefinitely in java programming?

547






Why javac is not recognized?

516


What modifiers are allowed for methods in an interface?

640


Can we define package statement after import statement in java?

556


Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example

2132


What are different type of exceptions in java?

544


How many types of variables are there?

666


Differentiate between stringbuffer and string?

591


Is java platform independent?

563


What are the important features of Java 8 release?

570


if u open login & logout ,how can udisplay the timelogin & logout members ?

1753