Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Is passing by reference faster?

955


What is the difference between stringbuffer and stringbuilder?

1002


Explain about narrowing conversion in java?

975


I want to store more than 10 objects in a remote server? Which methodology will follow?

3148


What are the two types of java?

1085


Who developed java?

944


What is an interoperable application in java ?

964


What are the types of web technologies?

1011


Can we override static methods in java?

1035


explain the difference between jdk and jvm?

942


What is the common usage of serialization? What exceptions occur during serialization?

1068


What is not object oriented programming?

886


How will you get the platform dependent values like line separator, path separator, etc., ?

978


What is the syntax and characteristics of a lambda expression? Explain

1009


Explain the difference between treeset and treemap in java?

937