Simple Java Tips

Simple Java Tips

Subscribe to my newsletter and never miss my upcoming articles

Difference between valueOf and parse methods

Sep 3, 20201 min read

In Java, you will see methods like valueOf and parseInt or parseBoolean. Boolean var = Boolean.valueOf("true"); Boolean var = Boolean.parseBoolean("true"); Why we have these kind of duplicate methods? There is a difference in these methods. Bool...