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 String into primitive datatype.

Answer Posted / akshya kumar

using the wrapper classes, by using the function in
following way:

int i_var = Integer.parseInt(string_var); //and as in
answer #2

Integer, Float, Long are wrapper classes predefined in JAVA
with methods parseInt(), parseFloat etc respectively.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are aggregate functions explain with examples?

1043


What are the changes in java.io in java 8 ?

1009


Is null in java?

984


Why pass by reference is not possible in java?

1017


What is final method?

1041


Is minecraft java edition free?

1106


What is final, finally, finalize?

1086


What is difference between an object and a class?

1109


What is the maximum size of byte array in java?

992


What is the difference between heap memory and stack memory?

1041


Why string is immutable or final in java

1063


explain different ways of using thread? : Java thread

995


Tell us something about an iterator.

935


Does constructor be static?

1021


What are the pillars of java?

902