Java Type Conversion Tutorial with Examples

Java type conversion tutorial with examples contains Java examples of conversion between Strings, Numbers, Dates, Collections and other built-in API objects. One stop solution for all your “how do I convert from X to Y in Java” needs.

Primitive Data Types to String


String to Primitive Data Types


Wrapper Classes








If you are looking for any specific Java conversion which is not covered in this type conversion tutorial, please let me know by leaving a comment in the comments section below.

About the author



My name is RahimV and I have over 16 years of experience in designing and developing Java applications. Over the years I have worked with many fortune 500 companies as an eCommerce Architect. My goal is to provide high quality but simple to understand Java tutorials and examples for free. If you like my website, follow me on Facebook and Twitter.

Add Comment

Your email address will not be published. Required fields are marked *