English

Methods of Wrapper Class

Advertisements

Topics

Methods of Wrapper Classes:

Note: a) Conversion from String to Primitive types: There maybe times when you have to conver your string in a primitive datatype. For example converting string to Integer type data ->  

Syntax: integer variable= Integer.parseInt(Stringargument) 

b) Conversion from Primitive type data to String: If you have to convert long datatype to string type -> 

Syntax: String variable=Integer.toString( intargument); 

If you would like to contribute notes or other learning material, please submit them using the button below.
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×