---
title: "Comment by KwonMInwoo on \"valueOf(), parseXX() 차이\" | Hashnode"
description: "반환 값의 차이가 있었군요 Integer가 필요할 때는 valueOf() int가 필요할 때는 parseInt()를 쓰는 식으로 사용하면 되려나요"
url: "https://hashnode.com/posts/valueof-parsexx/64e4c88af4dee989d5a49680/comment/64e6e7e706aee9f0bdb4ffc5"
---

[Discussion](https://hashnode.com/posts/valueof-parsexx/64e4c88af4dee989d5a49680)

Comment [valueOf(), parseXX() 차이](https://hashnode.com/posts/valueof-parsexx/64e4c88af4dee989d5a49680)

[KwonMInwoo](https://hashnode.com/@KwonMinwoo)

[Aug 24, 2023](https://hashnode.com/posts/valueof-parsexx/64e4c88af4dee989d5a49680/comment/64e6e7e706aee9f0bdb4ffc5)

반환 값의 차이가 있었군요 Integer가 필요할 때는 valueOf() int가 필요할 때는 parseInt()를 쓰는 식으로 사용하면 되려나요

[Ok JaeOok](https://hashnode.com/@laigasus)

[Aug 24, 2023](https://hashnode.com/posts/valueof-parsexx/64e4c88af4dee989d5a49680/comment/64e6e7e706aee9f0bdb4ffc5#reply-64e70a992a4db2f775272edb)

네. 불필요한 형 변환을 줄이자는 것이 이번 글 작성의 취지였습니다.
